1
Hello, I was "playing" without Python, and I decided to make a minigame, for the PC to play Jokempô with me (I AM BEGINNER IN PROGRAMMING).
while pj <5 and pc <5:
def game()
But I came across the following problem.
def game()
^ SyntaxError: invalid syntax
Can someone tell me where I went wrong?
The keyword
def
is used to define a function, not to call it. If you just want to invoke the function, usegame()
. Be careful with code indentation.– Woss