LearnPy Hub
← Classes & Objects problems
Easy

Change an Attribute

Write class Player with a name and score = 0. Read a name and a new score, set p.score to it and print NAME: SCORE.

Input

Two lines.

Output

One line.

Sample 1

Input
Mim
50
Output
Mim: 50

Sample 2

Input
Rafi
0
Output
Rafi: 0
solution.py
Output appears here
Change an Attribute · Python practice problem · LearnPy Hub