Computer Science

Write a script to partition the string 'INSTITUTE' at the occurrence of letter 'T'.

Python

Python String Manipulation

4 Likes

Answer

string = 'INSTITUTE'
parts = string.partition('T')
print(parts)

Output

('INS', 'T', 'ITUTE')

Answered By

2 Likes


Related Questions