CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #15

Doubling Until A Limit

easyLoops

📄 Code

Read carefully — what does this print?
1value: int = 1
2steps: int = 0
3while value < 50:
4 value = value * 2
5 steps = steps + 1
6print(value, steps)

🎯 Your Answer