This repository contains Jupyter notebooks to help beginners learn Python. The notebooks cover basic topics like data structures, getting started with Python, and loops.
- python_getting_starts.ipynb: This notebook helps you get started with Python, covering fundamental concepts and basic syntax.
- python_loop.ipynb: This notebook explains loops in Python, including
for
andwhile
loops with practical examples. - python_data_structure.ipynb: This notebook covers basic Python data structures such as lists, dictionaries, sets, and tuples.
- python_getting_starts.ipynb: Begin with this notebook to understand the basics of Python and its syntax.
- python_loop.ipynb: Continue with this notebook to learn about loops and how to control the flow of your programs.
- python_data_structure.ipynb: Finish with this notebook to get a good grasp of the various data structures available in Python.
- A computer with an internet connection
- A development environment (we recommend Visual Studio Code)
- Go to the Visual Studio Code website.
- Download the installer for your operating system.
- Run the installer and follow the instructions to complete the installation.
- Go to the Anaconda website and download the latest version of Anaconda for your operating system.
- Run the installer and follow the instructions to complete the installation.
- During the installation, ensure that you select the option to add Anaconda to your PATH environment variable.
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing
Ctrl+Shift+X
. - Search for "Jupyter" and click "Install" on the Jupyter extension by Microsoft.
- Also, ensure that the Python extension by Microsoft is installed.
-
If you do not have Git installed, download the repository as a ZIP file.
-
Extract the ZIP file to a directory of your choice.
Alternatively, if you have Git installed, you can clone the repository by running:
git clone https://github.com/chronoscop/python-getting-starts.git
-
Open Anaconda Prompt (Windows) or Terminal (MacOS/Linux).
-
Create a new virtual environment using the following command:
conda create --name myenv python=3.8
Replace
myenv
with the name you want for your virtual environment and python version you can choose from 3.8 to 3.11. -
Activate the virtual environment:
-
On Windows:
conda activate myenv
-
On MacOS/Linux:
source activate myenv
-
- Open Visual Studio Code.
- Open the folder containing the cloned repository by clicking on
File > Open Folder
and selecting the folder where you downloaded it. - Open the desired notebook file (e.g.,
python_getting_starts.ipynb
). The file should open in a new tab with Jupyter Notebook functionality. - Ensure you are using the correct Python interpreter by selecting the Anaconda environment. You can do this by clicking on the Python version displayed in the bottom left corner of the VSCode window and selecting the Anaconda interpreter.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the MIT LICENSE
file for more details.