PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
car = {
'brand':'BMW',
'year': 2018,
'color': 'red',
'mileage': 15000
}
input()
if input() == 'brand':
print("BMW")
elif input() == 'year':
print(2018)
elif input() == 'color':
print('red')
else:
print(15000)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run