Fix the Variable Names
Python
15 pts
Fix the Variable Names
This program does not run because all three variable names break a naming rule. Press Run to see the error.
Rename the variables to first_name, home_city and grade, and update the print() lines to match. Keep the values the same.
Expected output:
Selam Keren 9
Checklist
- Rename
1st_nametofirst_nameand keep its value. - Rename
home citytohome_cityand keep its value. - Rename
classtogradeand keep its value. - Update the
print()lines so they use the new names.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
