• Continuos driving

Question related to mission OOP 7: Adding Parameters


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.