KnowledgeBoat Logo

Computer Science

Select the correct output of the following String operations.

str = "my name is Anu John"
print(str.capitalize())
  1. 'My name is anu john'
  2. TypeError: unsupported operand type(s) for * : 'str' and 'int'
  3. 'My name is Anu John'
  4. 'My Name Is Anu John'

Python String Manipulation

8 Likes

Answer

'My name is anu john'

Answered By

2 Likes


Related Questions