Skip to content
This repository was archived by the owner on Feb 26, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (21 loc) · 562 Bytes

File metadata and controls

28 lines (21 loc) · 562 Bytes

2. Launch Python

After installing Python, now you are ready to run Python.

2.1 From Terminal {#from-terminal}

Open terminal (Mac, Linux) or Command prompt (Windows). type "Python". To exit, ctrl + C or type exit(). from terminal :wq

2.2 From File {#from-file}

Create a file sample.py with following content.

print('My first file')

If you are on Linux, you can execute

echo "print('My first file')" >> sample.py

. then, run

python sample.py

. from-file