Sitemap

Python: A Beginner’s Guide to Programming

3 min readJul 9, 2023

--

Press enter or click to view image in full size

Python is one of the most beginner-friendly yet powerful programming languages used in AI, web development, and automation.

Get Saurabh Gandhi’s stories in your inbox

Join Medium for free to get updates from this writer.

This article aims to provide you with the basic level of Python programming. This article is for everyone who wants to learn a basic level of Python. To be easy to understand, I divided this article into different parts; you will find them below (click on the topic) or jump to the topic you want to learn. After reading all the issues you will get the basic idea of Python programming and be able to do programming with Python. At the end of every topic, there are questions that might be asked in interviews.

  1. Introduction of Python
    - What is Python?
    - History of Python
    - Versions of Python
    - Python is used for
    - Advantages/Features of Python
    - Organizations using Python
    - Questions
  2. Installing Python
    - Unix and Linux Installation
    - Windows Installation
    - Checking Whether Python Is Installed
    - Questions
  3. Python IDEs and Code Editors
    - What is Text/Code Editor?
    - What is IDE?
    - Python IDE and Code Editors
    - Questions
  4. Start using python
    - Virtual Environment
    - Run your first Python program
    - Python shell
    - Run Python in the console
    - Questions
  5. Variables Rules
    - What are Python Variables?
    - Declaring Python Variables
    - Printing Python Variables
    - Deleting Python Variables
    - Python Variables — Multiple Assignment
    - Constants
    - Python Variables — Naming Convention
    - Questions
  6. Data Types
    - Numeric
    - Sequence
    - Boolean
    - Set
    - Dictionary
    - Questions
  7. Type Casting
    - Implicit Casting
    - Explicit Casting
    - Conversion of Sequence Types
    - Data Type Conversion Functions
    - Questions
  8. Operators in python
    - Arithmetic Operators
    - Comparison Operators
    - Logical Operators
    - Bitwise Operators
    - Assignment Operators
    - Identity Operators and Membership Operators
    - Questions
  9. Indentation in Python
    - What is Indentation in Python
    - Python Indentation Rules
    - Benefits of Indentation in Python
    - Disadvantages of indentation in Python
    - Questions
  10. Conditional statements
    - The Basics: if, elif, else
    - Conditional Expressions / Ternary Operator
    - Nested if Statements
    - Advanced Conditional Patterns
    - Questions
  11. Loops in Python
    - What is Loops?
    - for Loop
    - while Loop
    - Questions
  12. List in Python
    - What is a List in Python?
    - Characteristics of Lists
    - Accessing Elements in a List
    - List Indexing and Splitting (Slicing)
    - Changing, Adding, and Removing Elements
    - Organizing a List
    - List Comprehensions
    - List Function
    - Questions
  13. Tuples
    - What is a Tuple?
    - Characteristics of Tuples
    - Creating Tuples
    - Accessing Tuple Elements (Indexing)
    - Tuple Slicing and Immutability
    - Tuple Packing & Unpacking
    - Tuple Methods
    - Why Use Tuple Instead of List?
    - Questions
  14. Dictionary
    - What is a Dictionary?
    - Why Use Dictionary?
    - Key Features of Dictionary
    - Creating Dictionary
    - Accessing Elements
    - Updating Dictionary
    - Removing Elements
    - Looping Through Dictionary
    - Dictionary Comprehension
    - Nested Dictionary
    - Questions
  15. Set
    - What is a Set?
    - Creating a Set
    - Characteristics of Set
    - Accessing Elements
    - Adding Elements
    - Removing Elements
    - Set Operations
    - Frozen Set
    - When Should You Use a Set?
    - Questions
  16. Arrays
    - What is an Array?
    - Arrays Using Python Lists (Dynamic Arrays)
    - The array Module in Python (Typed Arrays)
    - Accessing Elements
    - Traversing an Array
    - Updating Elements
    - Adding Elements
    - Removing Elements
    - Questions
  17. Exception Handling
    - What is an Exception?
    - Common Built-in Exceptions
    - Using “as” to Get Error Message
    - else Block
    - finally Block
    - Raising Exceptions (raise)
    - Creating Custom Exception
    - Nested try-except
    - Logging Exceptions
    - Custom Exception Hierarchy
    - Exception Chaining
    - Questions
  18. File Handling in Python
    - What is File Handling?
    - Opening a File
    - Closing a File
    - Reading a File
    - Writing a File
    - Checking File Properties
    - Using with Statement in Python
    - Working with Binary Files in Python
    - Buffering
    - File Pointer (seek() & tell())
    - Handling Very Large Files
    - Asynchronous File Handling (Async I/O)
    - Working with Compressed Files
    - Questions

--

--

Saurabh Gandhi
Saurabh Gandhi

Written by Saurabh Gandhi

Python • AI • Tech Learning Writing simple guides that make coding easy for everyone.