Introduction into Python.
Assignments are located here.
- Clone this repo into a new directory
- Open this directory with Intellij:
- File >> Open >> python-intro-I
- Check checkbox Trust Projects in...
- Open Terminal window (click on Terminal tab at bottom of IntelliJ)
- Create virtual environment:
python -m venv venv
- You should see a new
venv
directory in the project
- You should see a new
- Activate virtual environment:
venv\Scripts\activate.bat
- You should see
(env)
in the terminal windows
- You should see
- Install dependecies:
pip install -r requirements.txt
- Create a new file called
main.py
- Copy contents of
main.py.template
tomain.py
- Update
main.py
with your student id - Add Configuration ... Dropdown (Located at the right of green hammer at the top of IDE)
- Click "+" and select Python
- Name: Python Intro I
- Script path: select your
main.py
file - Check: Use specified interpreter:
Python 3.10
- Press green "play" button at top of IntelliJ
- Observe
TODO: Ex. 1...
in the terminal window
- Text Type:
str
- Numeric Types:
int
,float
,complex
- Sequence Types:
list
,tuple
,range
- Mapping Type:
dict
- Set Types:
set
,frozenset
- Boolean Type:
bool
- Binary Types:
bytes
,bytearray
,memoryview
- None Type:
NoneType
- Mutable types are passed by reference
- Immutable types are passed by value (AKA copy)
- Mutable types:
- Lists
- Dictionaries
- Sets
- Immutable types:
- Integers
- Floats
- Booleans
- Strings
- Tuples
- Frozenset