203k views
1 vote
You have defined your player data type.class player:life = 3magic = Falsename = ''You created an instance of your player data type and assigned values.myPlayer = player()myPlayer.life = myPlayer.life - 1myPlayer.magic = TruemyPlayer.life = 4myPlayer.name = 'Kris'What will be the value displayed after this line of code?print(myPlayer.life)

User Radrow
by
5.1k points

1 Answer

1 vote

Answer:4

Step-by-step explanation:

User BlueDragonX
by
5.0k points