Computer Science

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

Python String Manipulation

18 Likes

Answer

WahBhyiaha

Answered By

5 Likes


Related Questions