I have this dict:
d = { 'car' : ["ford", "fiat", "vw"],
'bike' : ["fant","xorg","niky"]}
And I am getting 3 string input from user:
a=str(input())
b=str(input())
c=str(input())
If the inputs are:
ford
fiat
vw
I should get "car"
as output
I am trying something like this:
for a,b,c in d.values():
print(d.keys())
but its not working, of course as it will print all d.keys no matter what the inputs are. Can anyone help me, please?