CBSE Class 11 Computer Science Question 23 of 91

String Manipulation — Question 13

Back to all questions
13
Question

Question 13

Guess the correct output of the following String operations.

str1 = 'Wah'
print(str1*2)
  1. WahWah ✓
  2. TypeError: unsupported operand type(s) for * : 'str' and 'int'
  3. WWaahh
  4. Wah2
Answer