Vidyalelo
Python · Q33

Files Handling in Python

Programming · Python · question 33

Q33

What will be the output of the following Python code? (If entered name is examveda) import sys print 'Enter your name: ', name = '' while True: c = sys.stdin.read(1) if c == ' ': break name = name + c print 'Your name is:', name

A.
examveda
Answer
B.
examveda, examveda
C.
Exa
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board