About this video
By Jason Chen. Python code available on GitHub: https://gist.github.com/OrionJam/2e62d76894163cd1fe240a8fd58c9600 Enjoy! It's a very simple code and didn't take long to write, but it gets the job done.
Video © Khan Academy, used under CC BY-NC-SA. Watch on Khan Academy. Puzzicle is not affiliated with Khan Academy.