Computer Science, asked by ashreya1906, 7 months ago

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

class 11 python​

Answers

Answered by deepmukeshpatil
0

Answer:

string=input("Enter the string !!")

newstr=list(string)

newlist=[]

for j in newstr:

if j not in newlist:

newlist.append(j)

count=0

for i in range(len(newstr)):

if j==newstr[i]:

count+=1

print("{},{}".format(j,count

Answered by jai696
4

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

print("INSTITUTE".split("T"))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions