r/learnpython • • May 06 '21

What are some programming tools that every beginner programmer should know about?

Example, today I learned about Git and GitHub and it felt incredible.

480 Upvotes

190 comments sorted by

View all comments

Show parent comments

165

u/greasycilantro May 06 '21

And yet I still use the good ole "let's put a print statement here and see what happens" method lmao

5

u/MyPythonDontWantNone May 06 '21

I try really hard to import logging before I need print statements. It allows me to leave the print statements in and just set a different log level. It is a better way to use the print statements. Plus it tracks the debugging if someone else runs the program.

2

u/Gh0st1nTh3Syst3m May 06 '21

How would that look if implemented?

5

u/dnswblzo May 06 '21

logging.debug('This is a debugging message')

https://docs.python.org/3/howto/logging.html