ATOM

To create your python file you have to open your text hackable editor (mine is Python)

command line

lets write a simple line of code to see if it works, i will use the function print to start

print evaluates each expression in turn and writes the resulting object to standard output (see below). If an object is not a string, it is first converted to a string using the rules for string conversions. The (resulting or original) string is then written.

Save PY

Save your file but remember to save it as a python file with .py at the end other way it wont work.

Terminal

open your terminal and write the directory of where your file is saved, that way the terminal will be able to run your file. To run a file write python and then the name of your file with .py

if you use another system that is not Windows you will have to specify what python are you using (2 or 3)

To see more abour the print function go to:

https://docs.python.org/2/reference/simple_stmts.html#print

CC BY 4.0 Mastery 1 and 10 by ilkaeng is licensed under a Creative Commons Attribution 4.0 International License.