โ Back to Exercises
๐๏ธ
Classes & Objects โข Exercise 111 of 112
Power Up!
๐ฏ 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!
