Welcome to the Python for Beginners repository! This project aims to provide a comprehensive introduction to Python programming for those new to the language. Whether you are a complete novice or looking to refresh your knowledge, this repository will guide you through the essential topics of Python.
- Introduction
- Getting Started
- Conditional Statements and Loops
- Functions and Recursion
- Lists, Dictionaries, and Tuples
- Working with Files
Module I: Introduction
- Basic concepts: Functional Programming, OOPS, and Data Structures
- Getting Started: Running Code in the Interactive Shell, Input, Processing, and Output
- Editing, Saving, and Running a Script
- Working of Python
- Variables, Expressions, and Statements:
- Values and Data Types
- Variables
- Keywords
- String Literals
- Escape Sequences
- Operators and Operands
- Expressions and Statements
- Interactive mode and Script mode
- Order of Operations
- Comments
Module II: Conditional Statements and Loops
- Modulus Operator
- Boolean Expressions
- Logical Operators
- Conditional Execution "if statement"
- Alternative Execution "else clause"
- Chained Conditionals "elif clause"
- Nested Conditionals
- while statement
- For loop
- Break and Continue Statement
Module III: Functions and Recursion
- Function Calls
- Type Conversion Functions
- Math Functions
- Composition
- Adding new functions
- Parameters and Arguments
- Stack Diagrams
- Importing modules with "from"
- Recursion
- Stack Diagram for Recursive Functions
- Infinite Recursion
- String Functions:
- Traversal
- Comparison
- Searching
- Counting
- Pre-defined String Functions
- In Operator
Module IV: Lists, Dictionaries, and Tuples
- Lists:
- List as a Sequence
- Traversing a list
- List Operations
- List Slices
- List Methods
- Map, filter, and Reduce
- Deleting Elements
- Lists and Strings
- Objects and Values
- Aliasing
- List Arguments
- Dictionaries:
- Dictionary as a set of counters
- Looping and Dictionaries
- Reverse Look Up
- Dictionaries and Lists
- Memos
- Global Variables
- Long Integers
- Tuples:
- Tuple Assignment
- Tuples as return values
- Variable Length argument tuples
- Lists and Tuples
- Dictionaries and Tuples
- Comparing Tuples
- Sequences of sequences
Module V: Files
- Text files and their Formats
- Reading from a file
- Writing to a file
- Accessing and Manipulating Files and Directories on the Disk
- Format Operator
- Filenames and paths
- Exception Handling:
- Errors
- Exceptions
- Handling Exceptions
- Raising Exceptions
- Try. Finally
- The with Statement
- Catching Exceptions
- Databases
- Pickling
- Pipes
These bullet points are categorized by module and topic for a structured overview of the Python concepts you provided.
- Each topic is organized into its respective folder with example code and explanations.
- Start with the "Introduction" folder and proceed sequentially to build your Python skills.
- Feel free to explore and practice the code examples provided in each section.
If you have any questions or need assistance, please feel free to create an issue in this repository.
Contributions to improve this resource are welcome! If you have suggestions, corrections, or additional content to contribute, please submit a pull request.
Happy coding, and enjoy your Python learning journey!