Apr-10-2019, 01:53 AM
I am making a dictionary, and I called for user input for the key-value combinations, and this was the result:
I wasn't expecting it to ask me for the value before it asked me for the key. How do I reverse that (without swapping the content)?
1 2 3 4 5 |
latin_vocab = {} latin_vocab[ input ( "Latin word: " )] = input ( "English meaning: " ) print (latin_vocab) |
Quote:English meaning: what
Latin word: quid
{'quid': 'what'}
Process finished with exit code 0
I wasn't expecting it to ask me for the value before it asked me for the key. How do I reverse that (without swapping the content)?