निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import sys
sys.stdout.write('Welcome\n')
sys.stdout.write('All\n') A
Welcome All
B
welcome All
C
Compilation Error
D
Runtime Error
Explanation
-
The first line,
sys.stdout.write('Welcome\n'), will print "Welcome" followed by a newline character (\n), meaning it will move the cursor to the next line. -
The second line,
sys.stdout.write('All\n'), will print "All" followed by a newline as well.
Correct Answer: A) Welcome All