The following is just a reminder:
- You can navigate to any folder code with:
cd <folder>
- up a directory:
cd ..
- You can list files in a folder with
ls
- You can run your code, if you are in the same folder as the file, with:
python3 <filename.py>
You can cycle through previous commands with your
up arrow
. This way you do not have to keep typing in the commands to run the code.
ch01
> exercises
touch rectangle.py
rectangle.py
shape = "megagon"
sides = 1000000
triangle_angle=60
. Let the computer do the math.
((n-2)×180)/n
wheren
is the number of sides