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