'Why do I keep getting NameError: name is not defined
I'm a noob to coding and just began my question. I started with python OOP and I ran into some trouble.
class Multidiv:
def __init__(self, mulitple):
self.mulitple = mulitple
def mulitple(self, x, y):
return x * y
def divide(self, x, y):
pass
math = Multidiv(mulitple, 10, 5)
print(math)
I keep getting a nameError and I don't understand why. Please help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
