Why doesn’t this work when i use decimals for x ?(Double for 31 days calculator) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why doesn’t this work when i use decimals for x ?(Double for 31 days calculator)

x = int(input()) z = int(x * (2**31)) y = 1000 if z > y: print("take the offer") else: print("take the 1000")

22nd Nov 2020, 2:14 AM
Jonathan Klein
Jonathan Klein - avatar
0 Answers