Suppose we are creating some game, and each game should have characters. Let's create one and customize its initial characteristics, such as name, health points, strength points and whether the character is playable or NPC (non-playable character). Variables name, hp, sp and npc should be used for that accordingly. Decide which variable should take what type and complete the code.
Types and variables
New player
Report a typo
Fill in the gaps with the relevant elements
name = ;
hp = , sp = ;
npc = ; ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.