- 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.
12 odpowiedzi
+ 1
Works fine
+ 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
+ 1
Change line 16 to as follows :->
print(car["mileage"])
+ 1
Try this I think I have fixed it!!
https://code.sololearn.com/ciyJdPGUwW2Z/?ref=app
+ 1
this aproach works, but it might work smoother using oop if you want to try it
0
yeah
0
but showing error
0
according to them
0
but the 3 test case is showing error
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
0
print (car['mileage'])
Write this in the 16 line this will c
- 1
i am geting the output as expected