How to run certain function based on command line input given in python
问题 I have my main script where i have two functions defined. The or_search will find occurrences of a string specified and add to the list what index position it has been found within. The second function and_search finds occurrences of a string specified and a counter is used to increment the amount of times it has been found. In my main function , if i pass for example python main.py andsearch commission , item , sold , it should run the and_search function and bring back the results. It