Home / MCQ Bank / Computer
Computer Files Handling In Python

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 == '\n': break name = name + c print 'Your name is:', name

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • examveda

Related Computer Questions

What is the default number of lines to drop for drop cap is ______? What is the output of the following Python code: array = [1, 2, 3]; print(array[-1]) A ______ is a hosted, live, concurrent data structure for rich communication. In Access press F11 to Consider the following code to find the nth fibonacci term using dynamic programming: 1. int fibo(int n) 2. int fibo_terms[100000] //arr to store the fibonacci numbers 3. fibo_terms[0] = 0 4. fibo_terms[1] = 1 5. 6. for i: 2 to n 7. fibo_terms[i] = fibo_terms[i - 1] + fibo_terms[i - 2] 8. 9. return fibo_terms[n] Which property is shown by line 7 of the above code?