I am making an OOP program and I got a "SyntaxError: invalid syntax". Here is the part of the code File "main.py", line 56 def __init __(self, side1, side2): ^ SyntaxError: invalid syntax
There is no space between init
and __
So it should be def __init__(self, side1, side2):
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.