name="Tony Stark"
print(name.replace("Stark","IRONMAN")) #here we replace Stark with IRONMAN.
print(name.upper()) #here we convert name declared value into uppercase.
print(name.lower()) #here we convert name declared value into lowercase.
print(name.find('t')) #here we find an alphabet or whole string into name.
print('S' in name) #here we search an alphabet or letters or whole string.
print('Stark' in name) #here we search an alphabet or letters or whole string.
print('m' in name) #here we search an alphabet or letters or whole string.
OUTPUT:
Tony IRONMAN #here word 'Stark' is replace by 'IRONMAN' by using function 'replcae()'
TONY STARK #here convert whole string into uppercase or capital letters
tony stark #here convert whole string into lowercase or small letters.
6 #it found the elements 't' whose index is '6'.
True #it found that alphabet
True #it found that string.
False #it is not found that alphabet