Lab7README.md piglatin.py markov.py Test.txt calculator.py 1 2 C: > Users > fjbc2 > Downloads > =Test.txt There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itsel "Oh dear! Oh dear! I shall be late!" (when she thought it over afterwards, 3 it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); 4 but when the Rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on, 5 Alice started to her feet, for it flashed across her mind that she had never before seen 6 a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, 7 she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge.
Attached is a text file called "Test.txt" that I've created for Python:
"There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itself,
“Oh dear! Oh dear! I shall be late!” (when she thought it over afterwards,
it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural);
but when the Rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on,
Alice started to her feet, for it flashed across her mind that she had never before seen
a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity,
she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge."
I'm trying to create a Markov chain with this code I have here (markov.py) but the program won't run because it doesn't have a direct path to "Test.txt". Can you help me fix this issue?
Unlock instant AI solutions
Tap the button
to generate a solution