Question: THIS IS A SIMPLE, HIGH SCHOOL COMPUTER SCIENCE COURSE IN PYTHON . PLEASE DON'T MAKE TOO COMPLICATED, THANK YOU! Write a program that will process
THIS IS A SIMPLE, HIGH SCHOOL COMPUTER SCIENCE COURSE IN PYTHON. PLEASE DON'T MAKE TOO COMPLICATED, THANK YOU!
Write a program that will process data in the jokes.txt and answers.txt files. Set up your program so that it will do the following tasks:
1) Display the number of jokes in jokes.txt 2) Ask the user for the number of a joke 3) Display the joke 4) Display the requested joke 5) Display the requested answer
************************ Jokes.txt *****************************
What did the paper say to the pencil? Write on!
What did the computer do at lunchtime? It had a byte
What does a baby computer call his father? Data
Two bytes meet. The first byte asks, "Are you ill?" The second byte replies, "No, just feeling a bit off."
What did you learn in school today? Not enough, I have to go back tomorrow!
Which bet can't be won? Alphabet.
How did the teacher knit a suit of armor? She used steel wool!
Why did the boy study on an airplane? He wanted to get a higher education.
What do you call a pig that knows karate? A pork chop!
Why did the chicken cross the playground? To get to the other slide.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
