#π Stumped with my homework about enumeration
27 messages Β· Page 1 of 1 (latest)
@fleet pier
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 is it youβre stuck on about enumeration? do you know how enumeration works?
Do you have some things and should definitely be present in the inputs? Like, the parts that you think are definitely correct
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
the 3rd number will never be reached
I'm asking this because you might have some incorrect assumptions about the input you're expecting to give
i is the index, so it counts until before 2 which is 1, meaning 0 (first item), 1 (second item)
@fleet pier how long do you think the stuff list should be?
Why do you think so?
Yes, that's right
And what should the length of more_stuff be?
π
hahahahah I feel so stupid thank you!
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