Quiz Catalog

Catalog of quizzes

lst1 = [2, 5, 8, 0, 4, 1]
lst2 = lst1

print(lst1 is lst2, lst1 == lst2)
True True
  • list
  • expression/operation/is
  • expression/operation/equality

number = 0
list = [2, 3, 4, 5]
num = 5 % 2

if num not in list:
  number = 1

print(number)
1
  • expression/operation/not_in
  • list