# Lesson 17: What's Next — Stepping into Python 3
# WHAT TO DO: This recap program uses only ideas from this course:
# variables, a for loop, an if, and a dictionary. The dictionary at
# line 20 holds the player's name and final score, but the last line
# is unfinished. Fill in line 21: replace the placeholder with a final
# message built from the dictionary, for example:
#     print(player["name"] + " finished with " + str(player["score"]) + " points.")
# HINT: str() turns the score number into text so it can join the
# message with +. Only change the placeholder line.
# Run with F5 in IDLE. You are done when the last line is a real
# final message, not a placeholder.

name = "Coder"
score = 0
for round in range(3):
    score = score + 10
    print(name + " has " + str(score) + " points.")
if score >= 30:
    print("Finished!")
player = {"name": name, "score": score}
print("TODO - a final message from the dictionary")  # <-- CHANGE THIS LINE
