Python_Institute
PCAP-31-03 · Question #61
How many lines does the following snippet output?
The correct answer is B. one. This only prints one line. This can be verified in the python interpreter.
Technology and architecture
Question
How many lines does the following snippet output?
Exhibit
Options
- Athree
- Bone
- Ctwo
- Dfour
How the community answered
(39 responses)- A8% (3)
- B79% (31)
- C10% (4)
- D3% (1)
Explanation
This only prints one line. This can be verified in the python interpreter.
Topics
#Python output#print function#code tracing#line counting
Community Discussion
No community discussion yet for this question.
