Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Machine Learning by (120 points)
recategorized ago by
My script:

a=open("textfile.txt",'r+','encoding="ANSI")

word_starts_with=input("Enter any letter")

for line in a:

       word=line.strip()

      if word[0] ==word_starts_with:

           print(word)
Please log in to answer this question.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...