Python: A Beginner’s Guide to Programming
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.
- Introduction of Python
- What is Python?
- History of Python
- Versions of Python
- Python is used for
- Advantages/Features of Python
- Organizations using Python
- Questions - Installing Python
- Unix and Linux Installation
- Windows Installation
- Checking Whether Python Is Installed
- Questions - Python IDEs and Code Editors
- What is Text/Code Editor?
- What is IDE?
- Python IDE and Code Editors
- Questions - Start using python
- Virtual Environment
- Run your first Python program
- Python shell
- Run Python in the console
- Questions - 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 - Data Types
- Numeric
- Sequence
- Boolean
- Set
- Dictionary
- Questions - Type Casting
- Implicit Casting
- Explicit Casting
- Conversion of Sequence Types
- Data Type Conversion Functions
- Questions - Operators in python
- Arithmetic Operators
- Comparison Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Identity Operators and Membership Operators
- Questions - Indentation in Python
- What is Indentation in Python
- Python Indentation Rules
- Benefits of Indentation in Python
- Disadvantages of indentation in Python
- Questions - Conditional statements
- The Basics:if,elif,else
- Conditional Expressions / Ternary Operator
- NestedifStatements
- Advanced Conditional Patterns
- Questions - Loops in Python
- What is Loops?
- for Loop
- while Loop
- Questions - 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 - 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 - 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 - 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 - Arrays
- What is an Array?
- Arrays Using Python Lists (Dynamic Arrays)
- ThearrayModule in Python (Typed Arrays)
- Accessing Elements
- Traversing an Array
- Updating Elements
- Adding Elements
- Removing Elements
- Questions - 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 - 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








