Python
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 …
Check if Python String contains Substring [5 Methods]
How to check if string contains substring in Python. Look out for exact match, case insensitive match or use regex to match the pattern in Python script
