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
960 articles
10+ simple examples to learn python sets in detail
Python sets are collections of unique and unordered items. It implements all the fundamental operations from set theory, like union, intersection, subset tests …
Python range() Function [In-Depth Tutorial]
Python range() function is a built-in function that generates a list of numbers. This list is mostly used to iterate over using a for loop.
Python dictionary (15 easy examples with syntax)
Python Dictionary are indexed using keys, which are usually strings. There are two kinds of dictionaries in Python: the default dict, which is unordered, and …
Python for loop (10 easy examples with syntax)
The Python for loop is also referred to as the for…in loop. This is due to its unique syntax that differs a bit from for loops in other languages. We use range, …
4 practical examples with bash increment variable
How to increment variable in bash shell script? How to add 1 to a variable for every for loop? How to increment counter in bash? How to perform bash variable …
Beginners guide to use script arguments in bash with examples
How to pass and store arguments to shell script? How to parse input arguments inside shell script? How to pass arguments to a function inside shell script in …
Bash string concatenate possible? [SOLVED]
How to concatenate strings with underscore, newline, whitespace or any other character in bash? How to append substrings in a string in bash or shell script? …
Bash getopts Tutorial: Syntax, Examples, Options & Error Handling
Learn bash getopts with syntax, examples, and a quick cheat sheet. Understand OPTARG, OPTIND, leading colon behavior, missing argument errors, and differences …
.bashrc vs .bash_profile [Which one to use?]
All rc files are for all shell invocations while the profiles are strictly for interactive shells. when you login via SSH, or via duplicate console, or via …
Bash check File Exists with Best Practices [5 Methods]
In this tutorial I have consolidated a list of file test operators which can be used to check different types of files. Bash Check file exists, is a symbolic …
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 …
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
