#๐ im having a really hard time with this for loop
32 messages ยท Page 1 of 1 (latest)
@fair dove
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.
What are you trying to do?
im trying to make a for loop to print on of the season of the year is january and same with febuary
season is months
I'm not sure what you mean
Is there an input?
What is the exact output you want?
Write a program that uses a for loop to print
One of the months of the year is January
One of the months of the year is February
One line for each month
Do you have a list of all the months?
no
You need that if you want to loop through every month
is that what its asking me?
The instructions are very vague so it's hard to say
i thought it just wanted a loop to print those things in a loop
yes but you need those things to exist first
we cant just say febuary and january
you need all 12 months though, right?
it doesent say, maybe?
where is this coming from?
its a class for college
can you show the full instructions?
those are the full instructions
Then it's up to you to interpret, or you'll need to ask your teacher
I would interpret it as displaying all months, which means you need a list of months
ok ill try that out
there are modules that can do it for you, but I would do it by writing it out yourself first
This help channel has been closed. 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.