Thanks for taking the time to look at my post, I am a student in a Spanish class right now and I want to make a study tool for students to practice verb conjugations. After talking with a code academy advisor, he recommended using 3 level dictionaries, which you can see in my code, I am unfamiliar with these dictionaries and need help! He briefly went over randomization and his shift ended. Here are the mains things I want inside of my game
-
Having the program randomly select a verb, a tense, and an article.
-
Having the program ask for a users input and ask a question, such as, What is the (tense) (article) form of (verb)?
Example 1: What is the present yo form of hacer? Correct Answer: Hago
Example 2: What is the present tu form of hacer? Correct Answer: Haces
Example 3: What is the preterite yo form of hacer? Correct Answer: Hice
- Having the program respond back, saying "Correct!" or "Wrong!"
Here are my dictionaries at the moment
import random
verbs = {
'hacer': {
'present':{
'yo': 'hago',
'tu': 'haces',
'elellausted': 'hace',
'nosotros': 'hacemos',
'ellosellasuds': 'hacen'
}
, 'preterite':{
'yo': 'hice',
'tu': 'hiciste',
'elellausted': 'hizo',
'nosotros': 'hicimos',
'ellosellasuds': 'hicieron'
}
}
'tener': {
'present':{
'yo': 'tengo',
'tu': 'tienes',
'elellaud':'tiene',
'nosotros':'tenemos' ,
'ellosellasuds':'tienen'
}
, 'preterite':{
'yo': 'tuve',
'tu': 'tuviste',
'elellausted': 'tuvo',
'nosotros': 'tuvimos',
'ellosellasuds': 'tuvieron'
}
}
}
Thank you to anyone out there that can help me out! I just beginning to program, but I've been doing website design for around 6 months now. I am willing to learn and any help would be greatly appreciated.
If you would like to setup a skype call of some sort or chat about this, that would be greatly appreciated and I would be more than willing!
Again, thanks for reading.
Aucun commentaire:
Enregistrer un commentaire