Nov-17-2019, 08:13 PM
(This post was last modified: Nov-17-2019, 08:13 PM by Gribouillis.)
You could rename the
started
variable to already_started
if it makes the code clearer. Also in the 'stop' case, this variable should be set to False, and an error could be written such as 'car already stopped' if the variable is false.