Answer to Question #122248 in Python for what??

Question #122248
Instructions
In the file KnockKnock.txt (Links to an external site.), the odd lines have the answers to, "Who’s there?', and the even numbers have the answers to, "_________ who?" question.

Count the number of lines in the file, then generate a random knock-knock joke from the file.

Sample Run
Note: the extra lines are there because each line ends in a \n and students will not know how to cut those off yet.)

Knock-Knock
Who's there?
Rabbit

Rabbit
who?
Rabbit up carefully it's a present!
1
Expert's answer
2020-06-15T08:03:33-0400
Dear what??, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS