What Will Be The Output Of The Following Python Code If Entered #1029
What will be the output of the following Python code? (If entered name is nvaeducation)</p> <pre><code class="language-python" line="1"> 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 </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Files - Python Files - Quiz No.3.
What will be the output of the following Python code? (If entered name is nvaeducation)
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
nvaeducation
nvaeducation, nvaeducation
San
None of the mentioned