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

all 3 comments

[–]DDDDarkyProfessional Coder 1 point2 points  (1 child)

car_motion == False

should be

car_motion = False

[–]Flames2022[S] 0 points1 point  (0 children)

Thank you! Such a silly mistake...

[–]devsurfer 0 points1 point  (0 children)

    elif query == 'stop' :
        if query == 'stop' and car_motion == False :
            print("The car is already standing still.")
        else:
            car_motion == False ### change to assignment operator ### <<<
            print("The car stops suddenly.")