#!/usr/bin/python3

import sys

try:
    quotient = 1 / float(sys.argv[1])
except ZeroDivisionError:
    print('Attempted to divide by zero')
except IndexError:
    print('Please enter a number on the command line')
else:
    print('Division executed with no problems')