Category: Tutorials
-
Literals
What are Python Literals? Python literals or constants are the notation for representing a fixed value in source code. In contrast to variables, literals (123, 4.3, “Hello”) are static values or you can say constants which do not change throughout the operation of the program or application. For example, in the following assignment statement. Here 10…
-
Unicode System
What is Unicode System? Software applications often require to display messages output in a variety in different languages such as in English, French, Japanese, Hebrew, or Hindi. Python’s string type uses the Unicode Standard for representing characters. It makes the program possible to work with all these different possible characters. A character is the smallest possible component…
-
Type Casting
Python Type Casting From a programming point of view, a type casting refers to converting an object of one type into another. Here, we shall learn about type casting in Python Programming. Python Type Casting is a process in which we convert a literal of one data type to another data type. Python supports two…
-
Data Types
Python Data Types Python data types are actually classes, and the defined variables are their instances or objects. Since Python is dynamically typed, the data type of a variable is determined at runtime based on the assigned value. In general, the data types are used to define the type of a variable. It represents the type…
-
Variables
Python Variables Python variables are the reserved memory locations used to store values with in a Python Program. This means that when you create a variable you reserve some space in the memory. Based on the data type of a variable, Python interpreter allocates memory and decides what can be stored in the reserved memory. Therefore, by…
-
Syntax
Python – Syntax The Python syntax defines a set of rules that are used to create a Python Program. The Python Programming Language Syntax has many similarities to Perl, C, and Java Programming Languages. However, there are some definite differences between the languages. First Python Program Let us execute a Python program to print “Hello, World!” in…
-
Virtual Environment
Python Virtual Environment Python virtual environments create a virtual installation of Python inside a project directory. Users can then install and manage Python packages for each project. This allows users to be able to install packages and modify their Python environment without fear of breaking packages installed in other environments. What is Virtual Environment in…
-
Environment Setup
First step in the journey of learning Python is to install it on your machine. Today most computer machines, especially having Linux OS, have Python pre-installed. However, it may not be the latest version. Python is available on a wide variety of platforms including Linux and Mac OS X. Let’s understand how to set up…
-
Python Interpreter and Its Modes
Python is an interpreter-based language. In a Linux system, Python’s executable is installed in /usr/bin/ directory. For Windows, the executable (python.exe) is found in the installation folder (for example C:\python311). This tutorial will teach you How Python Interpreter Works in interactive and scripted mode. Python code is executed by one statement at a time method. Python interpreter has two components. The…
-
Application Areas
Python is a general-purpose programming language. It is suitable for the development of a wide range of software applications. Over the last few years Python has been the preferred language of choice for developers in the following application areas − Let’s look into these application areas in more detail: Data Science Python’s recent meteoric rise in…