GoConqr has a new look! Let us know what you think.

Notes

Python Chapter 3/part 3

yomum 21 programming tech rocket nothing English 1 page

Content of the notes (1)

Page 1

Fuctions: A block of organised, reusable code that is used to perform a single realted action.

remeber to import fuctions from python

Python Chapter 3/part 3

Python Chapter 3/part 3

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

Python Chapter 3/part 3

Information

Description
nothing programming tech rocket (Python) Note on Python Chapter 3/part 3, created by yomum 21 on 26/07/2016.
Created by
yomum 21 · Jul 2016
Updated
Aug 8, 2016
Views
19
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?