def main():
print ("1=Square")
print ("2=Triangle")
print ("3=Rectangle")
print("4=Circle")
prob = input ("Enter the problem you have.")
This is the first portion of my code. When I remove the def main(): my program runs fine but when I add it I get this error
>>> C:/Users/dalel/AppData/Local/Programs/Python/Python311/python.exe "c:/Users/dalel/Downloads/ap python project.py"
File "<stdin>", line 1
C:/Users/dalel/AppData/Local/Programs/Python/Python311/python.exe "c:/Users/dalel/Downloads/ap python project.py"
^
SyntaxError: invalid syntax
Can anybody tell me what is going on please