โ† Back to Exercises
๐Ÿ—๏ธ

Classes & Objects โ€ข Exercise 111 of 112

Power Up!

Mediumโญ 30 XP๐Ÿ† Your XP: 0

๐ŸŽฏ Your Mission

Create a class Player with a name and a score that starts at 0. Add a method add_points(amount) that adds to the score and prints the name, "has", the score, and "points". Make a player named Zara and add 10 points, then 25 points.

๐Ÿ main.pyTab = 4 spaces โ€ข Ctrl+Enter = Run
โ–ถ Output
Press โ–ถ Run to see what your code does!