#๐ New to python would like suggestions
16 messages ยท Page 1 of 1 (latest)
@sonic trench
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.
how would u guys go about rewriting/ making my code more optimized or lowering the amount of lines of code i have?
https://paste.pythondiscord.com/2ABQ
i wouldn't use sleep(1), and you have two different methods of showing tasks currently
a manual one on line 24 and 19 and a method one at line 41
i need the sleep
otherwise it shows the tasks and removes them almost instantly
This is footage of what it looks like
https://streamable.com/8p9g4i
idk if swearing is allowed here but my music in the video has some
in a bunch of these if/else's you repeat the same code
if you do the same thing in both branches just do it once after the branch
if confirmation == 'y': tasks.clear()
clear_terminal()
I'm working on one
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.