Menu
Coddy logo textTech

Final Summary

Part of the Fundamentals section of Coddy's Lua journey. Lesson 39 of 90.

challenge icon

Challenge

Easy

Complete your character status display project by creating a comprehensive summary line that combines all character information into a single, formatted sentence. Use string concatenation to combine the character's name, level, and hp variables into one descriptive line that follows this exact format: "Coddy (Lvl 5) has 100 HP."

This final summary should appear after all the individual stat lines, providing a complete overview of the character in a single, easy-to-read sentence.

Try it yourself

-- Character variables
name = "Coddy"
level = 5
hp = 100
status = true

-- Display character status
print("=== Character Status Display ===")
print("Name: " .. name)
print("Level: " .. level)
print("HP: " .. hp)
print("Status: " .. tostring(status))
-- TODO: Print a summary line using string concatenation
-- e.g. Coddy (Lvl 5) has 100 HP.

All lessons in Fundamentals

Practice on your own: Online Lua compiler