Ami code. Written with Python 3 run the file like so: python3 ami.