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

Largest So Far

mediumLoops

📄 Code

Read carefully — what does this print?
1biggest: int = 0
2for value in [4, 9, 2, 9, 7]:
3 if value > biggest:
4 biggest = value
5 print('new best', biggest)
6print('final', biggest)

🎯 Your Answer