Python Tutorial Library

37 Lessons


Python Tutorial

Python is famous as a programming language, and its usage is increasing. This Introductory chapter helps beginner programmers to get started learning about Python programming.

    Python Overview

    The main focus of this lesson is to describe the introduction of Python programming.

    • What is Python?
    • Some Facts about Python
    • Python Why? Characteristics and Features of Python
    • What you can do with Python

    Python Installation

    Python Installation Steps Described In Details.

    • Python Environment Setup On Linux, Windows and MAC OS
    • Python GUI

    Basics of Python Programming

    Python programming basics explained In detail, with different modes of the interpreter.

    • Interactive Mode
    • Script Mode

    Comments in Python

    Comments are non-executable statements in Python. It means neither the python compiler nor the PVM will execute them. Comments are intended for human understanding, not for the compiler or PVM. Therefore they are called non-executable statements.

    • Single-Line and Multi-Line Comment
    • Docstrings


    Concept of Indentation in Python

    Indentation in Python refers to the (spaces and tabs) that are used at the beginning of a statement. The statements with the same indentation belong to the same group called a suite.

      Python Keywords

      Keywords are reserved words in Python and used to perform an internal operation. Python Keywords must be in your information because you can not use them as a variable name or any other identifier name.

        Python Operators

        This lesson describes:

        • Python Operators and Operands
        • Types of Python Operators

        Checking Membership in Python

        In Python, we can check whether a string or character is a member of another string or not using "in" or "not in" operators.

        • Python membership operators are described.
        • A Python Program to demonstrate membership operators.

        Python Numbers

        Python programming Numbers are described in detail.

        • Types of Numerical Data Types
        • Type Conversion (Casting)

        Python Strings

        A string is usually a bit of text in Python programming that is written to be displayed to users.

          Repeat String in Python

          Sometimes we need to repeat the string in the program, and we can do this easily by using the repetition operator in Python. The repetition operator is denoted by a '' symbol and is useful for repeating strings to a certain length.

            Remove Space From a String in Python

            Spaces are also considered as a character inside a string, and sometimes unnecessary spaces in the string cause wrong results. Therefore, such blank spaces should be removed from the string before being used.

              Python Data Types

              Python data types are different in some aspects from other programming languages. It is simple to understand and easy to use. Because Python is interpreted programming language and Python interpreter can determine which type of data is storing, so no need to […]


                Concept of Variable in Python

                The variable concept is different in Python compared to other programming languages, and it is explained in this tutorial. In Python, a variable is seen as a tag that is tied to some value.

                  Python Variables

                  Variables are identifiers of a physical memory location, which is used to hold values temporarily during program execution.

                  • Defining Values in Python
                  • Assigning Values To Variables
                  • Commons rules for naming variables in Python

                  Scroll Back to Top