What will be the output of the following Python code?
str = input("Enter your input: ");
print "Received input is : ", str
str = input("Enter your input: ");
print "Received input is : ", strA. Enter your input: [x*5 for x in range(2,10,2)]
Received input is : [x*5 for x in range(2,10,2)]
B. Enter your input: [x*5 for x in range(2,10,2)]
Received input is : [10, 30, 20, 40]
C. Enter your input: [x*5 for x in range(2,10,2)]
Received input is : [10, 10, 30, 40]
D. None of the mentioned
Answer: Option A

Join The Discussion