This repository contains a collection of Python code files that cover the basics of Python programming. These files are intended for learning purposes and serve as a resource for beginners who want to grasp the fundamentals of Python.
The repository includes the following files:
01_first_program.py
: A simple program that prints "Hello, World!" to the console.02_operators.py
: Examples demonstrating the usage of operators in Python.03_strings.py
: Code snippets showcasing string manipulation and operations.04_comments.py
: Examples illustrating the usage of comments in Python code.05_variables.py
: Code snippets explaining how to work with variables in Python.06_input_variable.py
: Examples demonstrating how to take user input in Python.07_conditional_logics.py
: Code samples showcasing conditional statements and logical operators.08_type_conversion.py
: Examples illustrating type conversion in Python.09_if_elif_else.py
: Code snippets explaining the usage of if, elif, and else statements.10_functions.py
: Examples demonstrating the definition and usage of functions in Python.11_loops.py
: Code samples showcasing different types of loops, including for and while loops.12_import_libraries.py
: Examples illustrating the import and usage of libraries in Python.13_troubleshooting.py
: Code snippets showcasing common troubleshooting techniques.14_python_list.py
: Examples demonstrating the usage of Python lists and list operations.15_tuples.py
: Code snippets illustrating the concept of tuples and how to work with them.16_sets.py
: Examples showcasing the usage of sets and set operations in Python.17_dictionaries.py
: Code samples explaining the usage of dictionaries and their operations.18_lambda_function.py
: Examples demonstrating the creation and usage of lambda functions.
Feel free to explore and use these files as a reference to understand the basics of Python programming. Each file contains comments explaining the code and its purpose.
- Clone the repository to your local machine using the command:
git clone https://github.com/saadat-khalid/python-basics.git
- Navigate to the repository directory:
cd python-basics
- Open the individual Python files using your preferred code editor or IDE.
- Read through the code and comments to understand the concepts and examples presented.
- Experiment with the code by making modifications and running it to see the results.
- Feel free to create your own Python files and add them to the repository to further expand your learning.
Contributions to this repository are welcome. If you find any issues or have improvements to suggest, please open an issue or submit a pull request. Let's learn and improve together!
CODANICS is brought to you with inspiration from Dr Aammar's YouTube channel, Codanics. As a dedicated learner, I've drawn insights and knowledge, including Data Science, from Dr Aammar's informative content on coding and development.
Learn Data Science and more from Dr Aammar on his YouTube channel: Codanics
A special thanks to Dr Aammar for sharing his expertise and fostering a learning community through Codanics.
This repository is licensed under the MIT License. You are free to use the code for personal or educational purposes.
Happy coding!