Cleaner to write it as `{1, 2, 2, 3, 4}` which is a supported syntax since Python 2.7. We're teaching newcomers here.