Welcome, apprentice Code Mage! In this tutorial, you'll learn to cast your very first spell using the arcane language of Python. We'll create a simple "Light Orb" spell that illuminates your surroundings.
def cast_light_orb():
orb_intensity = 5
print(f"A glowing orb appears, shining with intensity {orb_intensity}!")
return orb_intensity
# Cast the spell
light_level = cast_light_orb()
Now that you've seen the basic structure of a spell, try modifying it! Can you change the intensity of the light orb? Or perhaps add a color to it? Experiment with the code above and see what you can create!