Menu
Coddy logo textTech

Display Basic Stats

Part of the Fundamentals section of Coddy's Lua journey — lesson 37 of 90.

challenge icon

Challenge

Easy

Display the character statistics you declared in the previous lesson. Use the print() function with string concatenation to output each character stat on a separate line. Format each line with a descriptive label followed by the variable value: "Name: Coddy", "Level: 5", and "HP: 100". This will create a clear, organized display of your character's information.

Try it yourself

print("=== Character Status Display ===")

name = "Coddy"
level = 5
hp = 100

All lessons in Fundamentals