Computer Science
Select the correct output of the following String operations.
str = "my name is Anu John"
print(str.capitalize())
- 'My name is anu john'
- TypeError: unsupported operand type(s) for * : 'str' and 'int'
- 'My name is Anu John'
- 'My Name Is Anu John'
Related Questions
What is the output of the following string operation?
str = "My roll no. is 12" print(str.isalnum())
Select the correct output of the following String operations.
str1 = 'Waha' print(str1[:3] + 'Bhyi' + str1[-3:])
Choose the correct function to get the character from ASCII number.
s = ' '(single space). Then s.isalnum() will return.