'How can i correct this error from pydriod3 [duplicate]

command = ""
while command != "quit":
    command = input("> ").lower()
    if command == "start":
    print("car started . . .   ")
    elif command == "stop":
    print("car stopped ..... ")
    elif command == "help":
        print(""" 
        start _ start the car
        stop _ stop the car
        quit _ exit """)
   else:
    print("i dont understand")  

Every time i try this code i get

print("car started ... ") indentation error. expected an indented block. i use the pydriod 3



Solution 1:[1]

You have several indention errors, try with this:

command = ""
while command != "quit":
    command = input("> ").lower()
    if command == "start":
        print("car started . . .   ")
    elif command == "stop":
        print("car stopped ..... ")
    elif command == "help":
        print(""" 
        start _ start the car
        stop _ stop the car
        quit _ exit """)
    else:
        print("i dont understand") 

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Brad Figueroa