Skip to content
Snippets Groups Projects
Commit 9596996a authored by Cale Wagner's avatar Cale Wagner
Browse files

Created a menu for startup

parent edb4d329
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,18 @@ import sys ...@@ -5,6 +5,18 @@ import sys
def main(): def main():
print ('Enter your choice: \n'
'1: Get the score of a word\n'
'2: Get the average score of words in a file (one word per line)\n'
'3: Find the highest/lowest scoring words in a file\n'
'4: Sort words from a file into positive.txt and negative.txt\n'
'5: Exit the program\n')
choice = raw_input('Enter a number 1-5: ')
if choice == 5:
print('Goodbye!')
ans = [] ans = []
sentiments = dict() sentiments = dict()
total = 0 total = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment