Main(): SyntaxError: invalid syntax

Hi,
I have pyCharm 2019.3 installed on computer and I m working on windows 10 Pro. I am getting syntax Error message. I am trying to invoke “main()” method. My code is:

def main():
  generateRandomNumbers()
def generateRandomNumbers():
    print ('Testing')



size = 0
nameLength=0
if __name__ == "__main__"
    main()

I am getting following message:

“D:/ThrTunnel.py”
File “D:/ThrTunnel.py”, line 10
if name == “main
^
SyntaxError: invalid syntax

Process finished with exit code 1

Somebody please guide me.

Zulfi.

You are missing a colon.

Hi,
Thanks a lot. Seems that ‘:’ serves the function of curly brackets in Python.

God bless you.

Zulfi.