#๐ Help with iterators
30 messages ยท Page 1 of 1 (latest)
@dry wing
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.
Click here to see this code in our pastebin.
you didnt mention either of the two things btw
do this too
Click here to see this code in our pastebin.
why not just use yield
like creating a generator?
yeah
well yeah I could, but this is the assignment
and plus I'm still curious if there is a difference
i dont see a difference
they're both just iterators
well one has a loop in it and the other is like recursive
linear might be slightly better than recursive but this is python
pick the one thats more readable to you
!
!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.