6 of 8
π For Loops
Part A:
players = ["Steve", "Alex", "Notch", "Jeb", "Dinnerbone"]
Use a for loop to print the first 3 players with medals (π₯ π₯ π₯)
Part B:
scores = [100, 150, 200, 250, 300]
Use a for loop to print each score. Then print the total.
Part C: Make a countdown from 5 to 1, then print "GO!"
=== Top 3 ===
π₯ Steve
π₯ Alex
π₯ Notch
=== Scores ===
100
150
200
250
300
Total: 1000
=== Countdown ===
5
4
3
2
1
GO!