Processing.py - Unknown Error On Class Definition
I have no idea how to fix this error. Maybe there's an open parenthesis or quotation mark somewhere before this line? What is wrong with this code? Class Ribbon: # I got an error
Solution 1:
Here is your problem:
Class Ribbon (object):
def__init__(self, xpos, ypos, m, g):
self.x=xpos
self.y=ypos
self.mass=m
self.gravity=g
also remember that other def must be indented properly as well
Post a Comment for "Processing.py - Unknown Error On Class Definition"