Category

Programming Tutorials and Coding Guides

Explore programming tutorials with practical examples across multiple languages, scripting, and development concepts for beginners and advanced users.

Welcome to the Programming tutorials section, where you will learn coding concepts with real-world examples across multiple languages and platforms.

This category includes beginner to advanced guides covering scripting, automation, and application development. Whether you are learning programming for system administration or building applications, these tutorials will help you gain practical experience.

Programming plays a crucial role in modern infrastructure and DevOps workflows. You can also explore related topics such as DevOps and Linux to understand how programming integrates with system-level operations.

What you will learn

  • Core programming concepts and logic building
  • Writing scripts for automation and system tasks
  • Debugging and optimizing code
  • Practical use cases in real environments

Who should read this

  • Beginners starting with coding
  • System administrators learning scripting
  • Developers looking for practical examples

970 articles

How to create, read, append, write to file in Python

use open() or with open() function with different modes to create, write, append content to a text or binary file. Python write to file by overwriting the …

By Deepak Prasad · 15 min read · programming

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 …

By Deepak Prasad · 16 min read · programming

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 …

By Deepak Prasad · 13 min read · programming

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

By Deepak Prasad · 9 min read · programming

Python if else statement usage with examples

Learn about python if else statement, nested if statement with different examples using comparison and logical operators

By Deepak Prasad · 14 min read · programming

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 …

By Deepak Prasad · 18 min read · programming

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

By Deepak Prasad · 21 min read · programming

Master Python Enum Classes: A Comprehensive Guide

The python enum class provides an implementation of an enumeration type, with iteration and comparison capabilities. It can be used to create well-defined …

By Deepak Prasad · 13 min read · programming

How to append string in Python

Python append string using different operators and functions such as str.join, + operator, += and format strings. Concatenate strings to one another.

By Deepak Prasad · 4 min read · programming

How to declare global variables in Python

How can we define global variables in Python. What is the difference between local vs global variables. What are namespaces, scope and functions in Python …

By Deepak Prasad · 6 min read · programming