This commit is contained in:
louiscklaw
2025-01-31 20:57:47 +08:00
parent ed177c5ad6
commit fc6f79b133
341 changed files with 201064 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
vocabs = {'programming': ['the activity or job of writing computer programs','_______ming'],
'python': ['a very large snake that kills animals for food by wrapping itself around them and crushing them', '___hon'],
'fun': ['pleasure, enjoyment, or entertainment', '__n']}
def new_word():
try:
word, definition, hint = input('Enter a new word (word|definition|hint): ').split('|')
print('{} ({})\n {}'.format(word,hint,definition))
except ValueError:
print('Please make sure your format is correct!')
except:
print('Something is wrong')
new_word()
def new_word():
try:
word, definition, hint = input("Enter a new words (word|definition|hint)").split("|")
print("{}".format(word))
print(" - {} ({})".format(definition, hint))
print('----------------------')
except ValueError:
print("Value Error")
new_word()
except:
print("Something is wrong")
new_word()