#๐Ÿ”’ im having a really hard time with this for loop

32 messages ยท Page 1 of 1 (latest)

fair dove
#

here is what i have seasons = 'months' for ["One of the" seasons "of the year is January", "One of the" seasons "of the year is February" ]

half lavaBOT
#

@fair dove

Python help channel opened

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.

fair dove
#

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

sharp flicker
#

I'm not sure what you mean

#

Is there an input?

#

What is the exact output you want?

fair dove
#

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

sharp flicker
#

Do you have a list of all the months?

fair dove
#

no

sharp flicker
#

You need that if you want to loop through every month

fair dove
#

is that what its asking me?

sharp flicker
#

The instructions are very vague so it's hard to say

fair dove
#

i thought it just wanted a loop to print those things in a loop

sharp flicker
#

yes but you need those things to exist first

fair dove
#

we cant just say febuary and january

sharp flicker
#

you need all 12 months though, right?

fair dove
#

it doesent say, maybe?

sharp flicker
#

where is this coming from?

fair dove
#

its a class for college

sharp flicker
#

can you show the full instructions?

fair dove
#

those are the full instructions

sharp flicker
#

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

fair dove
#

ok ill try that out

sharp flicker
#

there are modules that can do it for you, but I would do it by writing it out yourself first

fair dove
#

ok thanks

#

close!

#

!close

half lavaBOT
#
Python help channel closed with !close

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.