|
x == y
|
x != y
|
x >= y
|
|
x > y
|
x < y
|
x <= y
|
|
not x
|
x and y
|
x or y
|
|
x in y
|
x not in y
|
all([x, y, z])
|
if and while
# iteration by elements or index (by elements more efficient)
for index, element in enumerate(list):
bloc of instruction
for i in range(len(list)):
bloc of instruction
for k,v in dict.items():
bloc of instruction
#while loop
while condition :
bloc of instruction
#etc
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.