[Python] Get Rid of SyntaxError: invalid syntax in Python

Discussão em 'Python' iniciado por Stack, Janeiro 26, 2025.

  1. Stack

    Stack Membro Participativo

    def success(self, input1: str = "", input2: str = "", input3: str = "") -> None:
    E ^
    E SyntaxError: invalid syntax


    No idea what is happening here..

    Code:

    def success(self, input1: str = "", input2: str = "", input3: str = "") -> None:
    input1 = str(input1)
    input2 = str(input2)
    input3 = str(input3)
    print(Color.BOLD + Color.GREEN + " " + Color.CHECKMARK + " " + input1 + Color.END + " " + input2 + " " + input3)

    Continue reading...

Compartilhe esta Página