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. [(http://stackoverflow.com/questions/37124167/need-fixes-for-a-few-errors-python?noredirect=1#comment61836425_37124167)]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.