r/pythonhelp • • Feb 19 '23

3 Simple Programming Tips for Beginner Python Programmers

As a new Python programmer, it can be easy to forgo syntax because this often seems less important. You often just want to solve the problem and do not worry about the sloppiness of the code. However, practicing good syntax from the beginning and slowly learning ways to improve your code syntactically can be very important in practice. In this video, I talk about 3 simple ways to instantly improve your code syntactically that are easy to remember and can help you have more professional-looking code in accordance with pep 8 standards.

1-) Organize imports accordingly

2-) Be cognizant of white space in your code

3-) Use f strings when possible (except for logging) as they are superior to previous forms of string formatting.

https://youtu.be/docjgO_1VCQ

Also please give the video a like and subscribe if you enjoy learning simple ways to improve your Python code. I have other videos on the channel that can help you as well!

Let me know if you have any questions or concerns. Thanks!

4 Upvotes

0 comments sorted by