+ 2
Challenge: Write a code that doubles the number each time
This appears really simple but I haven’t been able to work out how to do it... I’ve tried every approach I could think of. Maybe i’m just being stupid? Code should output: 1 2 4 8 16 32 64 128 256 ...
3 ответов
+ 5
+ 1
it doesnt double the number, it squares the number, maybe thats why u get it wrong
+ 1
x=1
for x<512
x*2
print(x)