- 1

i tried to solve a code.It is asking to take input of a key and give value as output.code is running but one c is show invalid

https://code.sololearn.com/c9GuX5fQ8POs/?ref=app1 i tried to solve a code.It is asking to take input of a key and give value as output.code is running but one case is show invalid in it.Please help me in it.

2nd Feb 2021, 9:22 AM
Mohammed Shakeab Hussain
Mohammed Shakeab Hussain - avatar
12 Respuestas
+ 1
Works fine
2nd Feb 2021, 9:29 AM
Slick
Slick - avatar
+ 1
Not sure who them is. Not sure what input/output is expected. Not sure what this code you're trying to solve is. Include information so that someone who hasent spent hours on it, will know what's going on. Just saying I have a problem doesn't do too much
2nd Feb 2021, 9:38 AM
Slick
Slick - avatar
+ 1
Change line 16 to as follows :-> print(car["mileage"])
2nd Feb 2021, 10:43 AM
Iron Coder
Iron Coder - avatar
+ 1
Try this I think I have fixed it!! https://code.sololearn.com/ciyJdPGUwW2Z/?ref=app
2nd Feb 2021, 12:37 PM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
+ 1
this aproach works, but it might work smoother using oop if you want to try it
3rd Feb 2021, 3:04 AM
Conner Bailey
Conner Bailey - avatar
0
yeah
2nd Feb 2021, 9:35 AM
Mohammed Shakeab Hussain
Mohammed Shakeab Hussain - avatar
0
but showing error
2nd Feb 2021, 9:35 AM
Mohammed Shakeab Hussain
Mohammed Shakeab Hussain - avatar
0
according to them
2nd Feb 2021, 9:36 AM
Mohammed Shakeab Hussain
Mohammed Shakeab Hussain - avatar
0
but the 3 test case is showing error
2nd Feb 2021, 9:42 AM
Mohammed Shakeab Hussain
Mohammed Shakeab Hussain - avatar
0
Then you arent getting the right output. Double check the problem to solve and make sure everything is correct, spelled right, and the correct case
2nd Feb 2021, 9:44 AM
Slick
Slick - avatar
0
print (car['mileage']) Write this in the 16 line this will c
3rd Feb 2021, 12:51 PM
Aditya Kumar Singh
Aditya Kumar Singh - avatar
- 1
i am geting the output as expected
2nd Feb 2021, 9:42 AM
Mohammed Shakeab Hussain
Mohammed Shakeab Hussain - avatar