Skip to content

Instantly share code, notes, and snippets.

@rahulnegi20
Created May 19, 2021 14:56
Show Gist options
  • Save rahulnegi20/45195323c82bb1c1c1e43666de8ada57 to your computer and use it in GitHub Desktop.
Save rahulnegi20/45195323c82bb1c1c1e43666de8ada57 to your computer and use it in GitHub Desktop.
get_meaning(title)
while flag == 0:
print('-----------------------------------')
print(' ``Press 1 to get synonyms`` ')
print(' ``Press 2 to get an example `` ')
print(' ``Press 9 to quit ``')
print('-----------------------------------')
try :
char = int(input())
if char == 1:
get_synonyms(title)
elif char == 2:
get_example(title)
elif char== 9 :
print('See you soon!')
flag = 1
else:
print('Wrong key pressed')
except :
print('INCORRECT KEY', sys.exc_info()[0])
pass
print('\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\END\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment