Question: Please use python Mary had a little lamb Whose fleece was white as snow And everywhere that Mary went The lamb was sure to go!
Mary had a little lamb Whose fleece was white as snow And everywhere that Mary went The lamb was sure to go! and you run reverse lamb.txt to out lamb.txt then out lamb.txt contains The lamb was sure to go. And everywhere that Mary went Whose fleece was white as snow Mary had a little lamb Hint: You might use loop or simply readline() and write) methods 3. Use attached text file text.txt. Write a program that reads the file's contents and determines the following: . The number of uppercase letters in the file . The number of lowercase letters in the file . The number of digits in the file . The number of whitespace characters in the file Hint: read the file using read) method and count occurrence of each type items from the string using string methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
