Python
Mastering Python subprocess Module [In-Depth Tutorial]
The different functions available with python subprocess are Popen(), call(), run(), check_call(), check_output(). What is the difference between these …
Use Python Logging Like a PRO: Don't be a Rookie
Learn how to use python logging module with examples. Write to console, stdout, stderr, to log file or syslog. Create single or multiple handlers using …
How to use python if else in one line with examples
Learn how to use python if else statement in one line using ternary operator. You can also hack your way to use nested if else or if elif else in single line
Python if else statement usage with examples
Learn about python if else statement, nested if statement with different examples using comparison and logical operators
Master Python datetime() Function: The Clock Is Ticking
In this tutorial we will learn about python datetime module which can be used to get current date and time based on different timezone. Use strptime() or …
