Declaring Multiple Variables on One Line
So far, we have declared variables one at a time.
Example:
Example:
bow_name = "Sylvanas Legendary Bow" bow_damage = 250 bow_range = 120
Python allows us to declare related variables on a single line.
Example:
bow_name, bow_damage, bow_range = "Sylvanas Legendary Bow", 250, 120This does exactly the same thing as the three lines above.
There is no fixed limit to how many variables you can declare on one line.
However, you should only group variables that logically belong together.
This keeps your program readable.
Code that is easy to read and understand is called clean code.
However, you should only group variables that logically belong together.
This keeps your program readable.
Code that is easy to read and understand is called clean code.
What You Must Understand:
• Multiple variables can be declared in one statement.
• The values must match the order of the variables.
• Clean code improves readability and teamwork.
• Multiple variables can be declared in one statement.
• The values must match the order of the variables.
• Clean code improves readability and teamwork.
Your Task:
Declare three variables on ONE line:
• weapon_name
• weapon_damage
• weapon_speed
Use these values:

Declare three variables on ONE line:
• weapon_name
• weapon_damage
• weapon_speed
Use these values:

"Thunderfury, Blessed Blade of the Windseeker'
'3 - 6 Damage"
2.6
Then print this exact sentence using an f-string:
Thunderfury, Blessed Blade of the Windseeker deals 3 - 6 damage with speed 2.6
Declare multiple variables correctly
# Declare the variables on ONE line below # Print the sentence below