data types Flashcards

1
Q

what is a integer

A

whole number

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

what is a boolean

A

a result that can only have two outcomes: true or false

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

what is a string

A

A string is a sequence of characters enclosed between the double quotes “…” Example: “abc123” “Hello World” “Hello, what is your name ?”

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

what is a float

A

Float is a function or reusable code in the Python programming language that converts values into floating point numbers. Floating point numbers are decimal values or fractional numbers like 133.5, 2897.11, and 3571.213, whereas real numbers like 56, 2, and 33 are called integers.

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

what is a list

A

a list is a couple of data values in these types of brackets: [] and broken up by commas ,

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

greater than or equals to

A

> =

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

common boolean operators

A

not, and, or, logical operators

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

equals to

A

=

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

less than or equals to

A

<=

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

plus

A

+

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

minus

A

-

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

modulus

A

%

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

divide

A

/

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

div

A

//

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

power

A

**

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

times

A

*

17
Q

greater than

A

<

18
Q

less than

A

>

19
Q

equal to

A

==

20
Q

not equal to

A

!=

21
Q

decimal integer

A

d

22
Q

fixed point

A

f

23
Q

nested structures

A

nesting is when you put one statement inside another

24
Q

while loops

A

Python While Loop is used to execute a block of statements repeatedly until a given condition is satisfied. When the condition becomes false, the line immediately after the loop in the program is executed.

25
Q
A