Computer Science

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

Python String Manipulation

8 Likes

Answer

WahWah

Answered By

3 Likes


Related Questions