Invalid syntax when trying to run python script [closed]

Your code is missing proper indentation and also the parenthesis for the print() command

def usage():
    print ("""
    -h --help       Usage
    -b --myId       My Id
    -p --myImg      My primary image
    -s --myImg2     My secondary image
    -i --myfile     My file
    -e --env        Set env
  """)

#output
usage()

    -h --help       Usage
    -b --myId       My Id
    -p --myImg      My primary image
    -s --myImg2     My secondary image
    -i --myfile     My file
    -e --env        Set env

Leave a Comment