Tag: Python
All the articles with the tag "Python".
-
Logging in a file to avoid print statements
A video that was enlightening We need to avoid the misuse of the print statements once we master the basic tools and ideas about programming in particular and software developer in general. So, here
-
Python calculate seconds and total_seconds
If you want to calculate the total seconds between two dates. You could be tempted to do a time delta and see the seconds. But this approach will give you an unexpected result. You have to use
-
Logger In python - First Approach
Besides using the print statements and the debugging tools sometimes (more and more frequently) I'm seeing in the code the logging module. According to the python documentation: This module defines
-
Enviroments in Virtual Env
The importance of using environments As was said in Setting environments in Python it’s important to use environments for your deployment, even if these are side projects or wild repositories. But at
-
Testing in Python: Pytest Vs Unit test
How important are the tests? Testing is one of the most important skills we need to develop once we join the industry. In fact, knowing about testing is something that is not as evaluated as it could
-
Why is it important to know what Environment Variables are?
While learning to avoid hardcoding some keys in my projects, I found the concept of environment variables. I've found this interesting article about this topic here in medium: An Introduction to
-
Setting environments in Python
When we start a project in Python we make the beginner mistake of installing each tool in any place. However, as we advance in our knowledge and looking to improve what we do we start thinking about
-
Assert or AssertEqual. Differences.
Difference Between the statement Asert and AssertEqual in Python