18
How is my Python code?
(raw.githubusercontent.com)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
Oops, sorry. I will revise the code and place spaces. Thanks for suggestion <3
Usually, you would use a formatter anyway - it's good to know the standard way but for day to day coding I just have a shortcut bound that runs
ruff format
(you can even have it done automatically on file save).I need to search formatters. Thank you for suggestion.
Ruff
Not the original commenter, but no need to apologise my friend. Nice work. Learning tip from me: give PEP 8 a read and save it for reference somewhere. It's the standard for how to format Python code, and future you will thank you for internalising it early on in your Python journey
Thank you I will read it.