# 'import' will run the file that is imported
import dict_tuples

# import also brings in the functions that were defined in the imported file.
# To access a function, we have to use the module name, in this case, 'dict_tuples'
result = dict_tuples.soft_drinks(['lemon coke', 'lemon sprite', 'cherry coke', 'lemon coke'])
print(result)

# You can also import individual functions by name.
# If you do this, you don't have to use the module name to call the function.
from dict_tuples import soft_drinks
print(soft_drinks(['lemon coke', 'lemon sprite', 'cherry coke', 'lemon coke']))

#print(dict_tuples.__name__) # will not be __main__

# If you want to import all functions by name:
from dict_tuples import *

help(dict_tuples) # shows information on functions and data from the dict_tuples module
