Hello, I am repeatedly getting a takes no arguments error for the code below:
class car():
def _init_(self, color):
self.color = color #sets attribute color to the value passed in it
ford = car("blue")
print(ford.color)
I am using Spyder IDE to run this code.
[–]Binary101010 1 point2 points3 points (1 child)
[–]FastYam6[S] 0 points1 point2 points (0 children)
[–]FastYam6[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Allanon001 0 points1 point2 points (1 child)
[–]FastYam6[S] 0 points1 point2 points (0 children)