0% found this document useful (0 votes)
15 views

Nning The Code

This document provides instructions for setting up and using Python code. It recommends installing Ubuntu or another Linux distribution and using Visual Studio Code as an integrated development environment. The document outlines how to create and run files, check code in the Python interpreter, and use important shortcuts for working with terminals.

Uploaded by

Santiago Campo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Nning The Code

This document provides instructions for setting up and using Python code. It recommends installing Ubuntu or another Linux distribution and using Visual Studio Code as an integrated development environment. The document outlines how to create and run files, check code in the Python interpreter, and use important shortcuts for working with terminals.

Uploaded by

Santiago Campo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

Manual to run the

Python code

Olatz Perez de Viñaspre Garralda


Ander Soraluze Irureta
Operating System

We recommend you to install Ubuntu (or other Linux


distribution) in your computer:

● In a new partition
● In a virtual machine (VMware, VirtualBox,...)

Plenty tutorials on the Internet


Environment (IDE)

You can use the IDE of your choice. Visual Studio Code
(installed in the classroom’s machines) can be an option.
Files in the opened folder
To create a new file
To create a new folder
The editor of the opened file
Click in the triangle to run
the code (it will open a
terminal inside the IDE)
The output of your
code after running
it in the terminal
Running the code in an
ordinary terminal (Linux)
Ordinary terminal == VSC terminal
Ordinary terminal == VSC terminal
Ordinary terminal == VSC terminal
Using the terminal to check
python pieces of code
Check code
You can run the python interpreter by
execurtin “python3” command
Check code
You can run the python interpreter by
execurtin “python3” command

Now, you can write any code to check


it’s behaviour without having to run the
whole program.
Check code
You can run the python interpreter by
execurtin “python3” command

Now, you can write any code to check


it’s behaviour without having to run the
whole program.

It is especially interesting to check


built-in functions
Ctrl+d
To run out the python interpreter

Or you can call the exit() function


Important shortcuts
to work with any
terminal
Main shortcuts to learn

Autocomplete file names Repeat previous commands

You can use the tabular key to You can use the upwards arrow key
autocomplete the filename to recover previous commands.

To do so, you should start writing the You can go through the history
filename and if it uniq, it will be commands with the upwards and
autocompleted. downwards keys.

If it is not uniq, you can press the tab You can even edit the command once
key again and will show you the you get to it.
options.
Ready to start working!
http://www.parentesis.com

You might also like