Module 3 Python Programming
- What is programming?
- Programming is the process of writing instructions for a computer to execute.
- Compiler and Interpreter
- A compiler translates the source code written in a high-level programming language into machine code.
- An interpreter directly executes the source code line by line.
- Source Code
- Source code is the human-readable code written by programmers.
- Machine Code
- Machine code is the low-level language that is directly understood by the computer’s hardware.
- Python Basics
- Variables
- Data types
- User interactive commands
- Operators
- Loops
- Statements
- Functions
- Defining functions
- Passing arguments to functions
- Different types of arguments
- Returning values from functions
- Local and global namespaces
- Lambda functions
- Recursion
- Filter
- Generators
- Decorators
- Modules
- Introduction to modules
- Importing modules
- Creating and using modules
- File Handling & Exception Handling
- File processing
- Reading and writing files using ‘with’ statements
- Exceptions
- Raising and catching exceptions
- Handling errors using try-catch blocks
- Object-Oriented Programming (OOP)
- Introduction to OOPs
- Classes and objects
- Inheritance and polymorphism
- Encapsulation and abstraction