Welcome to Python 101! This repository contains a list of comprehensive guides to learning the basics of Python programming. Whether you're a beginner or looking to refresh your skills, our tutorials and examples will help you get started with Python.
Python is a versatile and widely-used programming language that is great for both beginners and experienced programmers. It is known for its readability and simplicity, making it an excellent choice for learning programming concepts.
This repository is organized into various sections, each focusing on a fundamental aspect of Python programming. Each section contains detailed explanations, examples, and exercises to help reinforce your understanding. You can explore the sections in any order, but we recommend starting from the basics if you are new to programming.
Here is a list of the basic concepts you should know about. Click on each topic to access the respective guide:
- Arrays - Learn about Python arrays, how to create them, and perform basic operations.
- Booleans - Understand Boolean values (
True
andFalse
), and how to use them in conditions and logical operations. - Casting - Discover how to convert variables from one type to another using casting.
- Classes - Get introduced to object-oriented programming in Python with classes and objects.
- Comments - Learn how to write comments in your code to make it more readable and maintainable.
- Conditions - Explore conditional statements like
if
,elif
, andelse
to control the flow of your programs. - Datatypes - Understand the various data types available in Python, such as integers, floats, strings, and more.
- Datetime - Work with dates and times in Python using the
datetime
module. - Dictionaries - Learn about dictionaries, a powerful data structure to store key-value pairs.
- For Loops - Master the use of
for
loops to iterate over sequences such as lists, tuples, and strings. - Functions - Understand how to define and call functions to organize and reuse your code.
- Inheritance - Dive into inheritance in object-oriented programming to create hierarchical class structures.
- Iterators - Learn about iterators and how to create your own iterator objects.
- JSON - Discover how to work with JSON data, a common format for data interchange.
- Lambda - Explore lambda functions, a concise way to write small, anonymous functions.
- Lists - Get to know lists, one of the most versatile data structures in Python.
- Math - Perform mathematical operations and use mathematical functions provided by the
math
module. - Numbers - Work with different numerical types, including integers, floats, and complex numbers.
- Operators - Understand various operators in Python, including arithmetic, comparison, logical, and bitwise operators.
- Regex - Learn about regular expressions for pattern matching and text processing.
- Scope - Understand variable scope and the rules that determine where a variable can be accessed.
- Sets - Explore sets, a collection type that stores unique elements.
- Strings - Work with strings, including common operations like slicing, formatting, and methods.
- Syntax - Get familiar with Python syntax and the structure of a Python program.
- Tuples - Learn about tuples, an immutable sequence type.
- Variables - Understand how to declare, assign, and use variables in Python.
- While Loops - Master the use of
while
loops to execute a block of code as long as a condition is true.
Besides the guides provided, here are some additional resources to further enhance your learning experience:
- Python Documentation - The official Python documentation, a comprehensive resource for all things Python.
- Python Tutor - An online tool to help visualize Python code execution and debug your programs.
- Python Online - An online IDE where you can execute your Python code online.
- Codecademy Python Course - An interactive course to learn Python from scratch.
We welcome contributions to improve these guides and tutorials. If you have any suggestions or find any issues, please open an issue or submit a pull request. For major changes, please discuss them first in an issue.
Happy Coding! If you have any questions or have something to share, feel free to contact us. Let's embark on this Python learning journey together!