Light Mode
Dark Mode
Continuos driving

Since I spent some time thinking what is wrong it is probably worth noticing. In my logic, two subsequent commands testcar.drive(21), testcar.drive(10) should result in: 1) total distance of 31 km; 2) fuel_consumption as a sum of both rides and 3) appropriate print message. However, the task is accepted only when the print message displays information per ride.

Created: July 2, 2023, 1:23 p.m.
Updated: Dec. 13, 2023, 12:03 p.m.
1
13
User avatar
baranikov