Đặng Thu Hà
New member
What will be the output of the following Python code? (If entered name is 123hoidap)
A. 123hoidap
B. 123hoidap, 123hoidap
C. San
D. None of the mentioned
Code:
import sys
print 'Enter your name: ',
name = ''
while True:
c = sys.stdin.read(1)
if c == '\n':
break
name = name + c
print 'Your name is:', name
B. 123hoidap, 123hoidap
C. San
D. None of the mentioned