Variables
Operations
Loops
Lists
100

What variable stores only 2 possible values?

Boolean

100

What this operation does: - 

Substracks

100

What is a loop used for?

Repeating code multiple times.


100

What is the purpose of len()?

Finds length of the list

200

What is the difference of float and int?

Float - numbers with .

Integers - whole numbers


200

What is the difference of
/ and // operations?

/ -> exact division

// -> integer division

200

 What does this code outputs?

#    for i in range(3):

#        print(i)

0,1,2

200

Whats the purpose of reverse()?

Reversing the list

300

What is the difference of variable and data structure?
For example: list vs int?

Data structure: structures variables

Variable: singular container

300

Result of following operation:

7 % 3

1

300

What is the problem, with this code?

i = 0

while i < 10:

    i = i * i / i

    print(i)


It will create infinite loop problem

300

How to add new element to the list?

lst.append()

400
Is this code correct?


is_student = True

if is_student:

   print("Yes")

Yes it is

400

How to find square root of some value using power signs?

x ** 1/2

400

How to stop loop manually?

Use (break)

400

How to delete element from the list?

use remove() or pop()

500
What is the similarity between string and list?

They are both collectoins of items

500
Are they going to produce same results?


int(7.6) 


round(7.6)

No

500

What is the 2 types of loop we can create?

using range()

using in

500

What is 2D list? Can we create 3D lists?

2D - two dimensional, nested lists

Yes

M
e
n
u