Quote:
Originally posted by mfo6463@Nov 20 2004, 06:03 PM
dec = raw_input("Number: ")
power = 0
result = 0
while result <= dec:
result = 2 ** power
power = power + 1
print power
print result
|
It's because dec is a string variable because of the "raw_input" command.
Just try:
That should fix your problem
And tempest, nice pic :puke:
Beeg