0

How can I solve this practice task ?

#Car data practice for the intermediate python course for i in car: print(car[i])

18th Feb 2021, 4:11 PM
Mohamed Mehdi Gara
3 odpowiedzi
0
x = input() if x in "brand": print ("BMW") else: if x in "year": print ("2018") else: if x in "color": print ("red") else: if x in "mileage": print ("15000")
8th May 2021, 9:21 PM
Ferit ÖZTÜRK
Ferit ÖZTÜRK - avatar
- 1
Mention where are you checking that?
18th Feb 2021, 4:14 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar