str = "India is a great country"
L = str.split("i")
for i in L:
print(i,end=" ")
Answers
Answered by
0
Answer:
nda s a great country.
The output will be this, because when we use split function in python with any parameter it removes the particular parameter from the given string.
Answered by
0
Answer:
Ind a s a great country
Explanation:
str.split("i") just split string w.r.t. char "i"
L = ['Ind' , 'a' , 's a great country']
print function will print the string separated by space as end = " "
Similar questions