Python Assignment

User Generated

69789_

Programming

Description

You will start with the following two txt files: JokesPC.txt and answers.txt.

1) Replace all occurrences of "Your answer here" in the JokesPC.txt by the answers provided in answers.txt

2) Append a joke to the Jokes.txt file by asking a new ghost question/riddle to the user and recording the users answer via input. When this is complete you will have 5 questions and 5 answers in the JokesPC.txt file

3) Search for the word/s "Ghost/ghost" in the above file and print how many times the word appears in the file

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hello, Buddy I ...


Anonymous
I use Studypool every time I need help studying, and it never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags