CBSE Class 11 Computer Science Question 25 of 91

String Manipulation — Question 15

Back to all questions
15
Question

Question 15

Select the correct output of the following String operations.

str1 = 'Waha'
print(str1[:3] + 'Bhyi' + str1[-3:])
  1. Wah Bhyi Wah
  2. WahBhyiaha ✓
  3. WahBhyiWah
  4. WahBhyiWaha
Answer