0% found this document useful (0 votes)
8 views

Python String Program

Uploaded by

Mani Kanta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Python String Program

Uploaded by

Mani Kanta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

word1=""

a1=[]
a2=[]
for i in para:
if i not in special1:
word1=word1+i
for i in word1:
aword2=word1[69::-1]
print(aword2)
r = [i for j in aword2 for i in j]
for i in r:
if i is " ":
r.remove(i)
print(special2.join(map(str,r)))
check=all(item in para for item in list1)
if check:
print("Every string in {} were present".format(list1))
else:
print("Every string in {} were not present".format(list1))
a1 = word1.split()
for x in range(0,20):
a2.append(a1[x])
print(a2)
freq = {}
for items in a1:
freq[items]=a1.count(items)
a3 = list(freq.keys())
a4 = []
for i in range (-1,-21,-1):
a4.append(a3[i])
a4.reverse()

print(a4)
k= [i for i in range (len(word1))if word1.startswith(strfind,i)]
print(k[-1])

You might also like