Vidyalelo
Python · Q49

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 49

Q49

What will be the output of the following Python code snippet? def example(a): a = a + '2' a = a*2 return a >>>example("hello")

A.
indentation Error
Answer
B.
cannot perform mathematical operation on strings
C.
hello2
D.
hello2hello2

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board