Question: Help 4 questions please write python code please https//wwwonlinegdb_com/online_python_compiler 1. (SPts) John Donne is one of the famous poets and wrote following poem titled No

Help 4 questions please
write python code please  Help 4 questions please write python code please https//wwwonlinegdb_com/online_python_compiler 1. (SPts)

https//wwwonlinegdb_com/online_python_compiler 1. (SPts) John Donne is one of the famous poets and wrote following poem titled "No man is an island:" Write your Python code to save following poem as a file titied poem.txt. Make sure that you close the file at the end of your code. No man is an island, Entire of itself. Every man is a piece of the continent, A part of the main. if a clod be washed away by the sea. Europe is the less. As woll as if a promontory were. As well as if a manor of thy friend a Or of thine own were: Any man's death diminishes me. Because I am involved in mankind. And therefore never send to know for whom the bell tolis: is tolls for thee. 2. (SPts) Open the file poem.txt and append the date 2/21/23 at the end of the file. Look at the hint below: with open("filename.txt", "a") as file: file.write("Hello n1 ) file.write("World"") file.close() 3. (5Pts) Open the file poem.txt and count the number of words in the file using Python. 4. (SPts) Open the file poem.txt and count the frequencies of the word "man" in the file using Python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!