Articles on Trending Technologies

Technical articles with clear explanations and examples

Multi-Line Statements in Python

Alekhya Nagulavancha
Alekhya Nagulavancha
Updated on 25-Mar-2026 8K+ Views

In Python, statements are instructions given to the interpreter to understand and execute. These statements are usually written in a single line of code, but Python provides several ways to write statements across multiple lines for better readability. There are two types of statements in Python: assignment statements and expression statements. Both can be broken into multiple lines, and the Python interpreter will understand them correctly. There are various ways to structure multi-line statements in Python ? Using the backslash (\) operator Using parentheses () Using curly braces {} Using square brackets [] Using ...

Read More

Lines and Indentation in Python

Mohd Mohtashim
Mohd Mohtashim
Updated on 25-Mar-2026 2K+ Views

Python uses indentation instead of braces to define blocks of code. Unlike languages such as C++ or Java, Python relies on consistent spacing to group statements together for functions, classes, and control structures. Basic Indentation Rules All statements within a block must be indented with the same number of spaces. The Python convention is to use 4 spaces per indentation level ? if True: print("True") else: print("False") True Inconsistent Indentation Error Python will raise an IndentationError when statements in the same block ...

Read More

What are Python Identifiers?

Mohd Mohtashim
Mohd Mohtashim
Updated on 25-Mar-2026 7K+ Views

A Python identifier is a name used to identify a variable, function, class, module or other object. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9). Python does not allow punctuation characters such as @, $, and % within identifiers. Python is a case sensitive programming language. Thus, Manpower and manpower are two different identifiers in Python. Rules for Python Identifiers Python identifiers must follow these rules ? Must start with a letter (a-z, A-Z) ...

Read More

Python Environment Variables

Mohd Mohtashim
Mohd Mohtashim
Updated on 25-Mar-2026 1K+ Views

Environment variables in Python control how the Python interpreter behaves and where it searches for modules and configuration files. Understanding these variables helps you customize Python's runtime environment and resolve import issues. Key Python Environment Variables Variable Description Example Usage PYTHONPATH Specifies additional directories where Python searches for modules. Similar to the system PATH variable but for Python imports. export PYTHONPATH=/path/to/modules PYTHONSTARTUP Path to a Python file that runs automatically when the interactive interpreter starts. Useful for loading common imports or utilities. export PYTHONSTARTUP=~/.pythonrc.py PYTHONCASEOK On Windows, ...

Read More

Installing Python on Linux

Mohd Mohtashim
Mohd Mohtashim
Updated on 25-Mar-2026 796 Views

Python is a versatile programming language that can be installed on Linux systems through multiple methods. Whether you choose to compile from source or use your distribution's package manager, installing Python on Linux gives you access to the latest features and libraries. Method 1: Installing from Source Code Installing Python from source code provides maximum flexibility and control over features ? Prerequisites Ensure you have essential build tools installed ? sudo apt-get update sudo apt-get install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget Download and Install Follow these steps ...

Read More

Why You Should Learn Python Programming?

Mohd Mohtashim
Mohd Mohtashim
Updated on 25-Mar-2026 395 Views

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where other languages use punctuation, and it has fewer syntactical constructions than other languages. Python is a MUST for students and working professionals to become a great Software Engineer, especially when working in Web Development, Data Science, or AI domains. Here are the key advantages of learning Python ? Core Features of Python Python is Interpreted Python is processed at runtime by the interpreter. You do not need to compile your program before executing ...

Read More

10 Reasons why you should Learn Python

Sharon Christine
Sharon Christine
Updated on 25-Mar-2026 3K+ Views

Python has become one of the most popular programming languages in the world, and for good reason. Whether you're a complete beginner or an experienced developer, learning Python opens doors to countless opportunities in technology. Here are ten compelling reasons why you should consider making Python your next programming language. 1. Easy to Learn and Read Python is designed with simplicity in mind. Its syntax closely resembles natural English, making it incredibly accessible for beginners. The language eliminates complex punctuation and relies on indentation to structure code, which naturally makes programs more readable and organized. # ...

Read More

How to Test your Broadband Speed from Linux Terminal

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 444 Views

Testing your broadband internet speed from the Linux terminal is useful for network diagnostics and monitoring. The speedtest-cli tool provides a command-line interface to test download/upload speeds using speedtest.net servers. Installing Python pip First, install Python pip which is required for installing speedtest-cli ? $ sudo apt-get install python-pip The output will show package dependencies being installed ? Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libbs2b0 libopusfile0 libqmmp-misc libqmmpui0 libsidplayfp linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic ...

Read More

How to Install and Use Command Line Cheat Sheets on Ubuntu

Sharon Christine
Sharon Christine
Updated on 25-Mar-2026 528 Views

Cheat is a Python-based command-line tool that allows system administrators to view and save helpful cheat sheets. It provides quick, text-based examples for commands you use frequently but not often enough to memorize. This tool is particularly useful for remembering command options, arguments, and common usage patterns. Installing Cheat on Ubuntu System Update Before installing Cheat, ensure your system is up to date ? $ sudo apt-get update && sudo apt-get upgrade Installing Python Pip Cheat is best installed using the Python package manager Pip. Install pip with the following command ? ...

Read More

Fish – A Smart and User-Friendly Interactive Shell for Linux

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 350 Views

The Fish (Friendly Interactive Shell) is an innovative command-line shell for Linux and Unix-like systems. Unlike traditional shells that disable features by default to save resources, Fish enables powerful features out of the box to enhance user productivity. Key Features of Fish Shell User-friendly and interactive interface Smart autosuggestions based on command history Web-based configuration interface Syntax highlighting with 256 terminal colors X clipboard integration Built-in error checking and validation Comprehensive help system Arrow key navigation for suggestions Installing Fish Shell Step 1: Install Python Software Properties First, install the required dependencies − ...

Read More
Showing 6861–6870 of 61,298 articles
« Prev 1 685 686 687 688 689 6130 Next »
Advertisements