I'm working on an project where I have defined a lot of functions in my code. I just have a doubt, if it is possible to put all these functions inside a single function and just call this single function in main.
class Project:
def login(self):
#code
def upload(self):
#code
def import(self):
#code
if __name__ == '__main__':
c=Project()
c.login()
c.upload()
c.import()
So, my doubt is , is it possible to include all the methods inside a single method and call only one method in the main which triggers all the methods. Thanks!