#πŸ”’ Stumped with my homework about enumeration

27 messages Β· Page 1 of 1 (latest)

sacred karmaBOT
#

@fleet pier

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.

queen prairie
#

what is it you’re stuck on about enumeration? do you know how enumeration works?

glacial meteor
#

Do you have some things and should definitely be present in the inputs? Like, the parts that you think are definitely correct

fleet pier
#

so When I put in this silly(5, 2, 0, 2], [-3] )

#

it prints 4
[5, 3, 2, 5, -3]

#

but I need it to print [5, 3, 1, 5, -3]

#

without changing the program just the function call

#

but this line if thing >= 0 or i < 2:

#

means I have to make the 3rd number atleast 0

#

Sorry im still quite new

queen prairie
glacial meteor
queen prairie
glacial meteor
#

@fleet pier how long do you think the stuff list should be?

fleet pier
#

4?

#

because of print(len(stuff))

glacial meteor
#

Why do you think so?

#

Yes, that's right

#

And what should the length of more_stuff be?

fleet pier
#

1

#

wait

#

What if i make the last 2 invalid and then make more stuff 3 numbers

glacial meteor
#

πŸ™‚

fleet pier
#

hahahahah I feel so stupid thank you!

sacred karmaBOT
#
Python help channel closed

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.

#

πŸ”’ Stumped with my homework about enumeration