Please enable JavaScript.
Coggle requires JavaScript to display documents.
3.2.1- COMPTER REVISION - 3.2.10 - Coggle Diagram
3.2.1- COMPTER REVISION - 3.2.10
data types
integers
a whole number
12,342
real
:a number with a decimal place
2.5667755
character
a string with a length of 1
a
string
a line that is classed as text the program will print
'how are you?
Boolean
if something equals something carry on
true or false
Programming Concepts: Variables, Constants
What is a Variable?
A Python variable is a reserved memory location to store values.
What is a constant
A Python variable is a reserved memory location to store values
what a Global variable?
Variables that are created outside of a function (as in all of the examples above) are known as global variables.
What is a local Variable
A variable declared inside the function's body or in the local scope is known as a local variable
relational operations
pseudocode
< less than
.> greater then
≠ not equals to
≤ less than or equals to
= equals to
≥ greater then or equals to
< less then
.> greater than
!= not equals to
<= less then or equals to
== equals to
.>= greater than or equals to
definite and indefinite
definite
will happen for a set amount of times
for i in arange(10): run 10 laps
indefinite
will continue you to do something until told to stop
while ender == true print('hello') run until you you cant run anymore
bavi gay
Data Structure - One Dimensional Array
A one-dimensional array is one in which only one subscript specification is needed to specify a particular element of the array.