grand_78 0 Newbie Poster

Okay so my code is almost complete but I still need one small thing that I can figure out. When running my code it will add 5 when accelerating and subtract 5 when braking, but I need it to display an error when speed >0 when braking, then reset speed back to 0. I know this needs to be done in my def for brake but I can't figure out the proper line of code. Here is my code, thanks for any help. [(]