5 Answers
+ 6
When writing purpose driven code, I use more complex logic and code. When answering to users in the forums, I try to answer questions appropriately, according to what I think their level of knowledge may be.
I always try to write PEP 8 compliant code and include lots of comments.
https://peps.python.org/pep-0008/
+ 4
Arshia Nojoumi ,
Avoid one-liners, which are more fun to write than to read, or similarly dense statements within a larger program.
Adopt the conventions of PEP 8.
https://peps.python.org/pep-0008/
+ 3
What do you think? What are some ways to make anything more accessible, inclusive and friendly to people of diverse backgrounds?
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
+ 2
- Use comments
- Better variable naming convention
- Try spacing out expressions, like instead of (x+5) write (x + 5)
- Donât write hardlined code, meaning, instead of writing numbers, assign numbers to variables.
- Use functions for larger and reusable pieces of code.
Always make sure your code is clean and easier to navigate
+ 1
Use a formatting tool and split your code into many different functions s and add comments