Q. What is the output of print(‘x’ * 3)?
Solution:
The * operator repeats the string, so ‘x’ * 3 outputs ‘xxx’.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The * operator repeats the string, so ‘x’ * 3 outputs ‘xxx’.
Strengthen Your Practice with our comprehensive question bank.