i just learnt classes in python programming (learning still) and started experimenting with it and found my code gives a none statement in output but didn't use any return in my functions
MY CODE
class GreetingMessage:
def welcome_message(self):
print("you are welcome to python")
def thank_you_message(self):
print("Ok Bye Thank You")
def on_process_message(self):
print("process is on progress")
msg1 = GreetingMessage()
print(msg1.welcome_message())
print(msg1.on_process_message())
print(msg1.thank_you_message())
OUTPUT:
you are welcome to python None process is on progress None Ok Bye Thank You None