Mindmap
procedural programming
Inhalt der Mindmap
procedural programming
Coding in Python
- Loops and Variables
- Iteration is the process of repeating a section of code multiple times
- A loop is the section of code that repeats under specified circumstances
- Loops and Variables
computers don't think for themselves.
Everything that the computer does follows a clearly defined instuction
The simplest programmes are the procedural programmes because they are a sequence of commands that run in order
function and methods
- methods in functions contain a group of functions called object
- a function can tell the programme to do something.
- each function does something difffrent
- print() - displays some text in the console input() - gets some text from the keyboard round() - rounds a number to a given decimal place
- Random.randint() - generates a random whole number Random.random() - generates a random decimal number between 0 and 1 Turtle.forward() - moves a turtle forward
Arguments
- the brackets () are arguments which are extra data used at the end of a function
Python
- Data is stored in a named store called a variable
- We can name variables anything we like, as long as it starts with a letter
- A + symbol can be used to combine strings together into bigger strings This is called concatenation
- To make programs far more useful, we can get inputs from the user and store those in variables, which we can use later.
Informationen
- Beschreibung
- Mindmap am procedural programming, erstellt von thomas o'brien am 01/09/2021.
- Erstellt von
- thomas o'brien
- Aufrufe
- 0
- Bewertung