Q. What will be the output of the following Python code: print('Hello' * 3)?
β
Correct Answer: (A)
HelloHelloHello
Explanation: In Python, multiplying a string by a number repeats the string that many times. So 'Hello' * 3 will output 'HelloHelloHello'.