#๐ I wrote this program all by myself. Do you think I am now atleast somewhat good at programming ?
13 messages ยท Page 1 of 1 (latest)
@slate island
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.
I think this is a good start but you might still be a few iterations away from django
Like, how about classes? Django uses those extensively
what about the logic ?
The logic is... Alrightish. It definitely could be better but it's not awful
how can it be made better ?
Well the logic of passing in lists and then using copy on the list to avoid mutating it makes the logic harder to read than it needs to be. It also potentially will slow the processing down significantly for a larger list
so what should I change it to ?
Well you could pass in the input string and build the list in the function. It's not like you're using the list outside of the function
You also could have made this a CLI app instead of prompting for input.
can you please share with me the code ?
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.