Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code?
>>> a=(“Check”)*3
>>> a

What will be the output of the following Python code?
>>> a=(“Check”)*3
>>> a
a) (‘Check’,’Check’,’Check’)
b) * Operator not valid for tuples
c) (‘CheckCheckCheck’)
d) Syntax error

Answer: c
Explanation: Here (“Check”) is a string not a tuple because there is no comma after the element.

Join The Discussion