# python program to study character frequencies
# 
# Ethan Bolker
# March 2015
# Math 480 hw2

import sys

def createfrequencytable( filename ):
    table = {} # Python syntax for empty table
    table['a'] = 0.07
    table['x'] = 0.00
    table['e'] = 0.12
    return(table)
#     for line in open(filename:)


# Fake the default implicit main method that tells python
# where to start execution - the right trick for testing inside a module.
# 
if __name__ == '__main__':
#    table = createfrequencytable( sys.argv[1] )
   table = createfrequencytable( "whatever" )
   print( table )
   keys = table.keys()
   for char in keys:
       print(char + ": " + str(table[char]))
   for char in sorted(keys):
       print(char + ": " + str(table[char]))




