Python Basics - Student Notes
By Jay
Introduction to Python
Python is a high-level programming language that is easy to read, understand, and write. It
is used in web development, data science, automation, and more.
Why use Python?
- Simple syntax, similar to English
- Great for beginners
- Works on multiple platforms (Windows, Mac, Linux)
- Supports object-oriented and functional programming
Python Installation
How to Install:
1. Download Python from https://www.python.org/
2. Install it and select “Add to PATH” during setup.
3. Use IDLE (built-in editor) or install Jupyter Notebook for writing and running code.
Online Options:
- https://replit.com
- https://colab.research.google.com
First Python Program
print("Hello, world!")
Explanation:
- print() is used to show text/output on the screen.
- You can put any text inside double quotes " " or single quotes ' '.
Try it Yourself:
print("My name is Jay")
Variables in Python
What is a Variable?
A variable stores a value — like a container holding something.
By Jay
Introduction to Python
Python is a high-level programming language that is easy to read, understand, and write. It
is used in web development, data science, automation, and more.
Why use Python?
- Simple syntax, similar to English
- Great for beginners
- Works on multiple platforms (Windows, Mac, Linux)
- Supports object-oriented and functional programming
Python Installation
How to Install:
1. Download Python from https://www.python.org/
2. Install it and select “Add to PATH” during setup.
3. Use IDLE (built-in editor) or install Jupyter Notebook for writing and running code.
Online Options:
- https://replit.com
- https://colab.research.google.com
First Python Program
print("Hello, world!")
Explanation:
- print() is used to show text/output on the screen.
- You can put any text inside double quotes " " or single quotes ' '.
Try it Yourself:
print("My name is Jay")
Variables in Python
What is a Variable?
A variable stores a value — like a container holding something.