Computer Science
Select the correct output of the following String operations.
str1 = 'Waha'
print(str1[:3] + 'Bhyi' + str1[-3:])
- Wah Bhyi Wah
- WahBhyiaha
- WahBhyiWah
- WahBhyiWaha
Python String Manipulation
24 Likes
Answer
WahBhyiaha
Answered By
7 Likes
Related Questions
Guess the correct output of the following String operations.
str1 = 'Wah' print(str1*2)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.
str = "my name is Anu John" print(str.capitalize())Choose the correct function to get the character from ASCII number.