Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

def analyze _ alpahbet ( text ) : unique _ letter = #unique letterimizi ba ta bo olarak tan mayal m letter _

def analyze_alpahbet(text):
unique_letter ="" #unique letterimizi bata bo olarak tanmayalm
letter_count =[]# letter countumuzu bata sfr alalm
for letter in text :
if not letter in unique_letter:
unique_letter += letter
for i in unique_letter:
letter_count.append(0)
for i in range(len(unique_letter)):
for j in range(len(text)):
if text[j]== unique_letter[i]:
letter_count[i]+=1
return unique_letter, letter_count
def main():
alphabet = "abnmjffoefelifsuelifsuelifsuelfisuelfsu"
unique_letter , letter_count = analyze_alpahbet(alphabet)
print(unique_letter)
print(letter_count)
main() can you expalinin to the for i in range parts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions