Today we will be saving our python scripts so that we can access them later.
Python scripts are text files that contain python code. Their filenames are appended with ".py
To create a script select create a new file
Select to save the file
Save the file as test.py
Type into the file a python command such asprint ("My name is Lovelace")
Then save the file using the shortcut "CNTRL + S".
This file can now be run using pythons interpreter.
You can then run it by typing into the terminal
python3 test.py
- Create a new script with your name eg "chencha.py"
- Make the script print out your name
##How to name your files
- modules (filenames) should have short, all-lowercase names, and they can contain underscores;
- packages (directories) should have short, all-lowercase names, preferably without underscores;
##Assignment
Write a python script called "assignment.py" that when run outputs to the screen the following:
My name is Chencha
When you multiply 570 by 843 you get 480510
THIS STRING WAS SAVED IN LOWER CASE BUT NOW IS IN UPPER
##References:




