Python File Exercises
Python File Exercises
txt" which
is starting with an alphabet "T".
2-) Write a function in Python to count and display the total number of words in a text file
3-) Write a function in Python to read lines from a text file "notes.txt", to find and display the
occurrence of the word "the".
4-) Write a function display_words() in python to read lines from a text file "story.txt", and
display those words, which are less than 4 characters.
5-) Grade Calculater: We read the file and sent each line to grade_calculate
90 letter = "AA"
>= 85 letter = "BA"
>= 80 letter = "BB"
>= 75 letter = "CB"
>= 70 letter = "CC"
>= 65 letter = "DC
>= 60 letter = "DD"
>= 55 letter = "FD
else letter "FF"