#π Homework (1/4 questions)
129 messages Β· Page 1 of 1 (latest)
@analog oak
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Youβll have to create the tortoise.txt file yourself.
No, a text file
Since you want to read from tortoise.txt
Do you have example input files or something similar?
no sadly and these are the papers before the assignment if you wanted to see them
Or maybe an online judge or something you have to submit your code to?
yes
online judge? like a teacher?
Online judge as in a robot that just tests your code to see if it works.
You need to put the tortoise.txt file together with your source code file.
Make sure theyβre in the same folder
Well, since you moved your source code, you need to also change the path you run the source code.
It's because you saved the file at D:\python, not at D:\python\hw 7 in VSCode.
ohh
Now you have the file in the python folder again
Reopen the file you moved in VSCode.
Try manually running the command:
cd "D:/python/hw 7"
C:/Users/Tucso/anaconda1/python.exe madlib.py
does my code look right? cuz if it does ill just move onto the next question
this is so annoying
My bad. It should be C:/Users/tucso/anaconda1/python.exe madlib.py. should be lowercase username.
Hmm. Try adding & at the start. I don't usually use powershell, so pardon my mistakes.
The same command as this
You're still in C:\Users\tucso. Do the cd D:/python/hw 7.
You put e accidentally at the start of your command?
ths is so annoying
Uh, cd "D:/python/hw 7"
It's because your tortoise.txt is empty. Try adding something like https://www.lipsum.com/
Reference site about Lorem Ipsum, giving information on its origins, as well as a random Lipsum generator.
In the tortoise.txt file
Uh, the text in the website
ohh
Like, fill the file with a lot of words
Yes. Save the file and rerun the script
It's from line 20 of your code
oh
ima delete that like rn
alr perfect
so now I know the code works
do you think it will be messed up if i put it in another file? for my homework
i have a template i use but if it will mess it up it is fine
i wont do it
pardon but put what in what?
ah
Yes, you can put all your code in the main function
i think it will be fine if i keep continuing
i just added tht
the main
34,36,37
yea of course
i will do that at the end now
i need to do number two
i am working on it so far
im almost done
π
hmm is it supposed to list theseEnter noun:
Enter plural noun:
Enter verb:
Enter verb past:
Enter adjective:
because all i have are plural nouns
do i need to put if statement and elifs statements in?
this is confusing me
no matter what i do i cant print verb
i think i got this tho
m,aybe i only ened it for this question
Uh, sorry but I gtg
thats okay
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.