What is pip? pip is a tool that helps you add extra tools (called packages) to Python. Think of it
like an app store for Python – you use it to install packages that aren't built-in.
● pip install package-name → gets the package into your system
● Once you download packages via pip, pip gets the software and injects it into your
python environment
Where is Python stored in MAC? Open terminal and type open / Library. From there, open
Framework → Versions → 3.13 → Bin
When writing code in python, make sure you indent correctly!
Compiler vs Interpreter
Both tools run code, but work differently:
Compiler: "Translate the whole book before reading."
● Translates all the code at once into machine language (before running).
● If there are errors, it shows them after checking the whole program.
● Code runs faster after compiling.
● Example languages: C, C++, Java
Interpreter: "Read and translate one sentence at a time."
● Reads and runs the code line by line.
● Stops as soon as it hits an error.
● Slower, but easier to test small parts.
● Example languages: Python, JavaScript
What are the different data Types in Python? Numeric, String, List, Tuple and Dictionary
Python Data Type: Numeric
int a = 100
float b = 10.2345
complex c = 100 + 3j
Python Data Type: String