Python_Institute
PCAP-31-03 · Question #90
You are going to read just one character from a stream called s. Which statement would you use?
The correct answer is D. ch = s. read(l). See the full explanation below for the reasoning.
Question
You are going to read just one character from a stream called s. Which statement would you use?
Options
- Ach = read(s, 1)
- Bch = s. input(1)
- Cch = input(s, 1)
- Dch = s. read(l)
How the community answered
(17 responses)- A6% (1)
- B6% (1)
- C12% (2)
- D76% (13)
Community Discussion
No community discussion yet for this question.