Data Types Flashcards

1
Q

string

A

str, can contain text, letters, symbols and numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

integer

A

int, whole numbers (12,54,90,-78,-23)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

float / real

A

float, decimals, 1.2,1.54

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a variable ?

A

Something that you can store values in.
p.s. only one piece of values can be stored at the time .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Key things to acknowledge for naming variables :

A
  • relevant
    -short
    -no spaces, to show use capital letters: yourName
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Boolean

A

Basically like β€˜OR’ etc as long as one or more conditions have been met / True or False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly