Blog

Latest Articles

Browse the latest tutorials, guides, and practical examples across Linux, DevOps, security, databases, and programming on GoLinuxCloud.

Explore the latest tutorials and guides across Linux, DevOps, programming, and more.

You can also browse content by category below:

  • Linux: Commands, administration, troubleshooting, and system operations
  • DevOps: CI/CD, Kubernetes, containers, and automation
  • Cloud: AWS, Azure, OpenStack, and hybrid cloud administration
  • Programming: Coding tutorials, scripting, and development concepts
  • Security: Ethical hacking, system security, and best practices
  • Databases: MySQL, MariaDB, PostgreSQL, and database management
  • Networking: Network setup, troubleshooting, and protocols
  • Storage: Disk management, file systems, and storage solutions
  • Tools: Useful tools and utilities for productivity

2298 articles

Blog illustration with latest articles, tutorials, guides, and how-to content across Linux and DevOps topics
programming

Python None Keyword

Learn what None means in Python, how NoneType works, how to check if a value is None, and when to use None for missing values, function returns, and default arguments.

Bashir Alam8 min read
programming

Python next() Function

Learn how Python next() works with iterators, default values, StopIteration, generators, first-item lookup, and first matching item patterns.

Deepak Prasad7 min read
programming

Python Create Directory Recursively

Learn how to create directories recursively in Python using pathlib Path.mkdir(parents=True, exist_ok=True) and os.makedirs(), including create-if-not-exists examples and common errors.

Deepak Prasad6 min read
programming

Python Multiline Comments

Learn how to write multiline comments in Python using multiple # comments. Understand why triple-quoted strings are not true comments, how docstrings differ from comments, and how to comment multiple lines in VS Code, …

Bashir Alam5 min read
programming

Python Matplotlib pyplot

Learn Python Matplotlib pyplot with simple plot examples. Create line plots, scatter plots, bar charts, and make beautiful plots using labels, colors, markers, legends, grids, styles, and savefig().

Deepak Prasad8 min read
programming

Python Custom Exceptions

Learn how to create custom exceptions in Python by subclassing Exception, raise custom exceptions with messages, catch them, add attributes, chain exceptions, and follow best practices.

Deepak Prasad7 min read
programming

Python List vs Tuple vs Set vs Dictionary

Compare Python list, tuple, set, and dictionary with examples. Learn the differences in order, mutability, duplicates, indexing, syntax, use cases, and when to use each data type.

Deepak Prasad8 min read
programming

Python List extend() Method

Learn Python list extend() method with examples. Add items from another list, tuple, set, string, or dictionary, and understand extend() vs append(), +, and +=.

Deepak Prasad6 min read
programming

Python While Loop Examples

Learn Python while loop with simple examples, including syntax, counter loops, user input, break, continue, while else, nested while loops, and multiple conditions.

Deepak Prasad8 min read
programming

Python len() Function

Learn Python len() function with simple examples. Get the length of strings, lists, tuples, dictionaries, sets, ranges, and custom objects, and fix common TypeError mistakes.

Deepak Prasad6 min read
programming

Python *args and **kwargs

Learn Python *args and **kwargs with simple examples. Understand positional arguments, keyword arguments, how to iterate over kwargs, and how to pass args and kwargs to another function.

Bashir Alam4 min read
programming

Python Join List

Learn how to join a list in Python using str.join(), including lists of strings, numbers, mixed values, separators, newline joins, and common TypeError fixes.

Bashir Alam5 min read
programming

Python One Line If Else

Learn how to write Python if else in one line using the conditional expression syntax. Includes one-line if, if else, if elif else, nested conditions, and common mistakes.

Deepak Prasad7 min read
programming

Python isupper() Method

Learn Python isupper() method with examples. Check if a string is uppercase, understand return values for numbers, symbols, spaces, empty strings, and compare isupper() with upper(), islower(), and isalpha().

Bashir Alam4 min read
programming

Get GPS Coordinates in Python

Learn how to get latitude and longitude in Python from an address using geopy, and how to get approximate current location from an IP address.

Azka Iftikhar6 min read
programming

Python Get Home Directory

Learn how to get the current user's home directory in Python using pathlib Path.home(), os.path.expanduser('~'), and environment variables like HOME and USERPROFILE.

Bashir Alam5 min read
programming

Python Function Examples

Learn Python functions with simple examples, including def syntax, calling a function, parameters, return values, default arguments, keyword arguments, *args, **kwargs, and common mistakes.

Deepak Prasad7 min read
programming

Python filter() Function

Learn Python filter() function with simple examples. Filter lists, strings, dictionaries, and objects using normal functions, lambda functions, filter(None), and list comprehension alternatives.

Bashir Alam6 min read
programming

Python for Loop in One Line

Learn how to write a Python for loop in one line using list comprehension, generator expressions, for with if condition, if else expression, and simple inline loop examples.

Bashir Alam5 min read
programming

Python Flatten List

Learn how to flatten a list of lists in Python using list comprehension, itertools.chain.from_iterable, nested loops, recursion for deep nesting, and NumPy, plus when to avoid sum() on large data.

Bashir Alam4 min read
programming

Python for Loop

Learn Python for loop syntax with simple examples using lists, strings, range(), dictionaries, nested loops, break, continue, pass, and for else.

Deepak Prasad5 min read
programming

Python YAML to Dictionary

Learn how to read a YAML file into a Python dictionary using PyYAML safe_load(), access nested YAML values, load multiple YAML documents, handle errors, and convert dict back to YAML.

Deepak Prasad6 min read
programming

Python Concatenate Lists

Learn how to concatenate, combine, and merge lists in Python using the + operator, extend(), +=, unpacking, itertools.chain(), and list comprehension, with examples and common mistakes.

Deepak Prasad8 min read
programming

Python Copy String

Learn how to copy a string in Python, why assignment is usually enough for immutable strings, and when slicing, str(), copy.copy(), or deepcopy() are unnecessary.

Deepak Prasad7 min read
programming

Python Password Input with Asterisks

Learn how to take password input in Python and show asterisks while typing using getpass echo_char, pwinput, and stdiomask, with examples and common mistakes.

Azka Iftikhar6 min read
programming

Cobalt Python Library for Akoma Ntoso XML

Learn how to use the Cobalt Python library to work with Akoma Ntoso XML documents, metadata, FRBR URIs, Act documents, validation, and document parsing.

Deepak Prasad8 min read
programming

Python Concatenate Strings: +, f-strings, join, and +=

Learn how to concatenate strings in Python with +, f-strings, str.join, +=, spaces, mixing variables and numbers, performance in loops, mistakes, and a quick reference table.

Deepak Prasad5 min read
programming

Python Copy List: Assignment, copy.copy(), and deepcopy()

Learn how to copy or clone a Python list using assignment, shallow copy.copy(), list slicing, list.copy(), and copy.deepcopy(), with examples that show when nested objects are shared or independent.

Deepak Prasad7 min read
programming

Python ceil() Function

Learn Python ceil() using math.ceil() with examples for positive and negative numbers, ceiling division, ceil vs floor, integers, floats, and common mistakes.

Bashir Alam6 min read
programming

Python Class Example

Learn Python classes with simple examples to create a class, create objects, use __init__ and self, define attributes and methods, class variables, inheritance, and common mistakes.

Bashir Alam7 min read