System1 interview question

Simple Python list and dict comprehension exercises for a range of numbers.