Variables, Data Types, Operators Flashcards

Learn operators in Python

1
Q

Variable

A

A box to store data | Points to a specific location in the memory

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

Data Type

A

Type of the container that stores the data

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

Integer

A

Whole Number (1, 0, 103, 81)

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

Float

A

Decimal Value (5.5, 2.5, 19.0)

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

Boolean

A

Yes or No? True or False?

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

List

A

A sequence of elements stored continuously, pointed by a single variable ([1,2,3,4,5])

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

A list can store different data

A

[‘Gnanambhal’, ‘Shivarraman’, 24, 3.7]

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

Operators

A

Tools to perform operations between data

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

Addition, Subtraction, Multiplication, Division

A

+ - * /

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

Floor Division

A

Rounds the answer to the lowest decimal
5 / 2 = 2.5
5 // 2 = 2

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

Modulo

A

Remainder of a division
5 % 2 = 1
5 % 3 = 2

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

Power

A

2 ** 3 = 8

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

Equality

A

var1 == var2 (Returns True or False)

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

Non Equality

A

var1 != var2 (Returns True or False)

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

Strings

A

Stores numbers, alphabets and symbols together
‘Pethaa Shivarraman’
‘Password@231’

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