You are given a file “text.txt” that contains words from the…

Questions

Yоu аre given а file "text.txt" thаt cоntains wоrds from the English Language. The text is stored in the file as one sentence per line. The contents of the file  is similar to the following image: Write Python code to perform the following: Read all the contents of the file. Store each word in a list called words.  Remove periods and commas, that is, make sure that the elements in the words list do not contain any punctuation characters (don’t worry about any other non-alphabet characters). From the words list, create another list called length_five such that each word in length_five has exactly the length 5.