Apuntes
Python Chapter 3/part 3

Contenido del apunte (1)
Página 1
Fuctions: A block of organised, reusable code that is used to perform a single realted action.
remeber to import fuctions from python


e.g:
def addition(a,b):
total = a + b
return total
another way of calling input e.g
num1 = int(input("Enter car 1"))
default fuctions: fuctions that are set by default. We use this because we don't want the user to enter anything sometimes or user forgets to enter prementer value.
e.g.
def CreateAnArcade(name, games, helipad = "NO", high_def = "YES"):
print("name:",name)
print("games:"games)
print("helipad:"helipad)
print("high def:",high def)
return;
return;= return the body of fuction

Información
- Descripción
- nothing (Python) programming tech rocket Apunte sobre Python Chapter 3/part 3, creado por yomum 21 el 26/07/2016.
- Creado por
- yomum 21
- Visitas
- 19
- Valoración