Sail E0 Webinar
Question
What is the output of this code?import syseval(sys.stdin.readline())"India"
Options:
A .  India5
B .  India
C .  'India\n'
D .  'India'
Answer: Option D


The function shown above evaluates the input into a string. Hence if the input entered is enclosed in double quotes, the output will be enclosed in single quotes. Therefore, the output of this code is 'India'.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers