- 1

"This program needs to take the key as input and output the correct."

Please help this problem.This program is car data in dictionary.

15th Jul 2021, 2:57 AM
Saad Ahmed
Saad Ahmed - avatar
1 Resposta
+ 1
If you relearn the python course you would easily be able to do this. Let's say you have a dictionary like car = {'b':'bmw', 'm':'mercedes'} inp = input() print(car[inp])
15th Jul 2021, 4:24 AM
minirkk
minirkk - avatar