Hi just starting with python, been in it for a few days and I design an discord bot. One of fucntions I wanna use is kind of economy. But when I print out function to show balance I got another line with "NONE" and I got no clue where it came from. Here is my code.
economy_currency = '$'
class Economy:
def __init__(self, p, n, m):
self.position = p
self.name = n
self.money = int(m)
def balance(self):
print(self.name + ' your balance is ' + economy_currency + str(self.money))
najzik = Economy(1, 'Najzik', "200")
print(najzik.balance())
and the output is
Najzik your balance is $200
None # this is coming from where??