How Many Tries Did It Take? — medium Python for AI problem | Incognition