Guessing Passcode in Python

Same thing as yesterday, written in Python.

I’ve been bored lately.