Python 3 - Learning the Basics
Command Line Basic
Find your directory:
Windows Command:
1. search for cmd:
cd - for current path
2. For content of Directory: dir
3. Change folder cd and name folder back cd ..
4. Clear screen cls
Linux and MacOS
1. Open Terminal search terminal
2. working directory pwd - print working directory
3. list folder ls
4. change directory cd desktop
Install Python:
https://www.python.org/downloads/
https://www.anaconda.com/products/individual
https://docs.conda.io/en/latest/miniconda.html
Running Python Code:
1. Download IDE, of your choice
2. Create your first program:
print("Hello World")
3. Save as hello.py
4. Navigate to your location of hello.py, type python hello.py and enter
You should get an output Hello World
2. For content of Directory: dir
3. Change folder cd and name folder back cd ..
4. Clear screen cls
Linux and MacOS
1. Open Terminal search terminal
2. working directory pwd - print working directory
3. list folder ls
4. change directory cd desktop
Install Python:
https://www.python.org/downloads/
https://www.anaconda.com/products/individual
https://docs.conda.io/en/latest/miniconda.html
Running Python Code:
1. Download IDE, of your choice
2. Create your first program:
print("Hello World")
3. Save as hello.py
4. Navigate to your location of hello.py, type python hello.py and enter
You should get an output Hello World
Comments
Post a Comment