#๐Ÿ”’ Expense Tracker

25 messages ยท Page 1 of 1 (latest)

delicate stratusBOT
#

@warm charm

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.

warm charm
#

my first day coding

#

(i used an youtube tutorial)

ashen carbon
#

what's your question

acoustic elm
#

i think its a code review

#

(cuz tag)

#

for a person who has just started coding, the code is really good!

#

but id recommend looking into f-strings

#

using snake_case over camelCase would also be good

#

basically follow pep8

#

!pep8

delicate stratusBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:

acoustic elm
#

also, when using try-except

#

dont just do except:

#

mention the exception or just do

#

except Exception:

#

because without this

acoustic elm
#

and would make it tricky to stop the program

#

i see u used it here

#

but not here

#

i think thats about it from my side

delicate stratusBOT
#
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.