Python_Institute
PCAP-31-03 · Question #84
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
(33 responses)- A9% (3)
- B82% (27)
- C3% (1)
- D6% (2)
Community Discussion
No community discussion yet for this question.
