Python_Institute
PCAP-31-03 · Question #115
What is the expected behavior of the following code? It will:
The correct answer is B. print 1 2. See the full explanation below for the reasoning.
Question
What is the expected behavior of the following code? It will:
Options
- Aprint 2 1
- Bprint 1 2
- Ccause a runtime exception
- Dprint <generator object f at (some hex digits)>
How the community answered
(45 responses)- A2% (1)
- B80% (36)
- C11% (5)
- D7% (3)
Community Discussion
No community discussion yet for this question.