Skip to main content
flornquake's user avatar
flornquake's user avatar
flornquake's user avatar
flornquake
  • Member for 11 years, 7 months
  • Last seen more than a month ago
  • Vienna, Austria
awarded
awarded
awarded
accepted
comment
Convert a hex string to base64
@Lundin This order of digits is how Base64 is typically defined (don't ask me why). Thanks for your review!
awarded
asked
Loading…
revised
Loading…
comment
Performance of dynamic Fibonacci generator and dead rabbits
You're going to have rounding errors if you implement this formula with floats. Also, math.pow(x,y) won't be faster than x**y if x (φ) is a float.
comment
Dice simulator program
while input(msg).lower() != 'exit': is a simpler way of writing the exit condition.
awarded
comment
Check if an element is present within a linked list
Disagree with your first point; this data structure is definitely implemented as a linked list. I agree, though, that it doesn't offer all the methods that one might expect from a linked list interface, such as removal.
suggested
Cancel
awarded
awarded
comment
Python infinite product generator
you can write itertools.count() instead of .count(0). :)
comment
Python calculator script
int has unlimited precision. :)
comment
Python calculator script
z isn't global.