livepython.net

33. Fix the Invalid Variable Names in a Python Program

EasyNaming rules

Overview

This program stores two values, but Python can't even start it: two variable names break the naming rules.

Problem Statement

Rename the two variables so that every name follows the rules, then run it. It should print:

Sunny Pune

Remember to use the new names everywhere, including inside print().

Input

No input is required for this question.

Output

Sunny Pune

Learn this firstChapter 4 · Python Variable Naming Rules (With Examples)
solution.py
first-name = "Sunny"
2nd_city = "Pune"
print(first-name, 2nd_city)

EXPECTED OUTPUT

1Sunny Pune

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.