week 1
Week 1: Introduction to Python
Setting up Python & Development Environment
import sys print(sys.version)pip install requestsprint("Hello, Python!")python -m venv my_env source my_env/bin/activate # On macOS/Linux my_env\Scripts\activate # On Windowspython -m idlelibimport pkg_resources installed_packages = {pkg.key: pkg.version for pkg in pkg_resources.working_set} print(installed_packages)print("Hello, World!")python hello.pypython >>> 5 + 3pip install notebook jupyter notebookprint("Running Python in Jupyter Notebook!")
Basic Syntax, Data Types, and Variables
Last updated