PythiloEasy · 12 min · Task 23 of 100 · progress kept in this browser

Find the missing number

A list contains n distinct integers from 0 through n, with one missing. Return that missing integer.

items = [3, 0, 1]
n = len(items)
print(n*(n+1)//2, sum(items))
Your task

A list contains n distinct integers from 0 through n, with one missing. Return that missing integer.