Question 4
Back to Exercise
Python refuses to run the program below. Which statement correctly describes the problem?
first name = "Kavya"
print(first name)
- A The string needs single quotes
- B print needs an f-string
- C Names must start with a capital letter
- D A variable name cannot contain a space; use first_name Correct
Correct Answer: Option D
Identifiers are letters, digits and underscores only. PEP 8 style is first_name.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!