CyberStars

Recap: Player Card

Time to combine what you've learned! No new theory, just a challenge that uses print, variables, f-strings, and comments


Mission: Player Card

Build a character profile card for a game. You need to create the character's stats: name, level, health, and guild.

Using f-strings (f{}), print the profile card.

Example:

name = "Shadow"
level = 42
health = 97.5
guild = "CyberStars"

After printing with print() and f{}, we should see:

Player Shadow(42) has 97.5 health and is part of CyberStars.

Note:

  • name, guild: text
  • level: a whole number
  • health: a number with decimals