once again am a newbie to python. I have this assignment that involves searching for details of a certain club by entering the name of a club or asking a keyword such as Arsenal score etc. I have made several modules modules for several teams as follows:
The closest I came to main is this:
def main():
import team que1
if __name__ =='__main__':main()
I also have other modules for other teams such as NBA, Hockey,Rugby etc. Every time I run the module separately, it works, but I need a way to import into a main to allow a user to enter any key word such as 'Chicago Bulls players' and the module runs or 'Arsenal score' and the module runs from the main. The modules contain quite a long detail and that is why I have separated the long code into these modules. I have also put them into packages.Please help
See Question&Answers more detail:os