Quiz Catalog

Catalog of quizzes

lst1 = [x for x in range(6)]
lst2 = [y for y in range(9)]
a = lst1 + lst2

print(*a)
0 1 2 3 4 5 6 7 8
  • set
  • list/comprehension
  • build-in/set

lst = [15 + 6, 24 // 3, True == False, 12 - 3 - 3, 7 + 5 // 4]
lst.sort(key=lambda x: x > 10)

print(set(lst))
{8, False, 21, 6}
  • list/operation/sort
  • build-in/set