Please enable JavaScript.
Coggle requires JavaScript to display documents.
Modal 8 - Coggle Diagram
Modal 8
Library routines
Pre built code exetentions
MOD
MOD(10,3) = 1
Random
Random gives a random number
Roudn
ROUND(3.33333,2) = 3.33
Div
DIV(10,3) = 10/3
Vid 103
Very ueful
2D arrays
Nested loops
Variables
Local
Assigned inside a subroutine/function
Only exist inside the function
Global
Declared in the main body of code
Dont exist inside functions unless used as an input value
Files
Python
Reading
.readline()
Reads the line
.strip()
Removes blank space at the end of the line
File opened with "a" append "w" write
Writing
file opened with "r" read
.write(whatever you want to write + "\n") which ends the line
Pseudo code
Just use English and a brain