This repository contains a Jupyter/Colab notebook titled py.ipynb
that covers fundamental concepts of Python programming. It is intended for learners who are new to Python and want to understand basics like variables, data types, control flow, functions, and more.
Inside py.ipynb
, you will find sections on:
- Variables & basic data types (integers, floats, strings, booleans)
- Collections: lists, tuples, sets, dictionaries
- Conditional statements:
if
,elif
,else
- Loops:
for
,while
- Functions: defining, calling, parameters, return values
- Basic error handling (try/except)
- Possibly examples or exercises (if included)
- Python 3.x (the version supported by Colab)
- Standard Python libraries (no heavy external packages, unless your notebook uses any)
- Jupyter / Google Colab for interactive execution
- Click the βOpen in Colabβ badge above (or open this link directly):
https://colab.research.google.com/github/garimaakashyap/python-basics/blob/main/py.ipynb
- Once it opens, you can run each cell in the browser.
- Feel free to modify, experiment, or save your own copy.
-
Clone the repository:
git clone https://github.com/garimaakashyap/python-basics.git
-
(Optional) Create a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install any dependencies (if your notebook uses external libraries):
pip install -r requirements.txt
-
Launch Jupyter Notebook / JupyterLab in the folder:
jupyter notebook
-
Open
py.ipynb
and run the cells.
- Beginners learning Python for the first time
- Students who prefer an interactive, hands-on approach
- Anyone wanting a refresher on Python fundamentals
- More exercises / practice problems at the end of each section
- A
requirements.txt
if you use external libraries - A
LICENSE
file so people know how they may reuse your work - More notebooks covering intermediate & advanced Python topics
- A structured folder layout (e.g.
notebooks/
,exercises/
,data/
)
If you find errors, have suggestions, or want to contribute, please open an Issue or submit a Pull Request.
Happy coding! π»