adplus-dvertising
frame-decoration

Question

Carefully observe the code and give the answer.
def example(a):
    a = a + '2'
     a = a*2
    return a
>>>example("hello")

a.

indentation Error

b.

cannot perform mathematical operation on strings

c.

hello2

d.

hello2hello2

Posted under Python

Answer: (a).indentation Error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Carefully observe the code and give the answer.