What variable stores only 2 possible values?
Boolean
What this operation does: -
Substracks
What is a loop used for?
Repeating code multiple times.
What is the purpose of len()?
Finds length of the list
What is the difference of float and int?
Float - numbers with .
Integers - whole numbers
What is the difference of
/ and // operations?
/ -> exact division
// -> integer division
What does this code outputs?
# for i in range(3):
# print(i)
0,1,2
Whats the purpose of reverse()?
Reversing the list
What is the difference of variable and data structure?
For example: list vs int?
Data structure: structures variables
Variable: singular container
Result of following operation:
7 % 3
1
What is the problem, with this code?
i = 0
while i < 10:
i = i * i / i
print(i)
It will create infinite loop problem
How to add new element to the list?
lst.append()
is_student = True
if is_student:
print("Yes")
Yes it is
How to find square root of some value using power signs?
x ** 1/2
How to stop loop manually?
Use (break)
How to delete element from the list?
use remove() or pop()
They are both collectoins of items
int(7.6)
round(7.6)
No
What is the 2 types of loop we can create?
using range()
using in
What is 2D list? Can we create 3D lists?
Yes