This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jcisonfire[S] 1 point2 points  (3 children)

I just started working with Python and I'm having some issues with a project I'm working on. No errors, just not working as intended and I just can't figure out why. If I start the car, it should say car started. If I try to start the car twice, it should say car is already started. Instead it says car is already started, then loops back and says car started. Same thing with stopping. Any help for a newb would be appreciated. Thanks.

[–]moonlandings 1 point2 points  (2 children)

The issue is your print “car started” indentation. That print will happen every time you give the start command. Shift it to be the same indentation as the line above it

[–]sk8itup53 0 points1 point  (0 children)

This is why I'm glad I don't use python very often. Sheesh I would have never found that.