I have a python script that goes like this -
import..
def main ():
some_condition check
main() #calling main again
some condition check
main() #calling main again
main()
The idea here is to let the script run indefinitely and check for something. This way of calling main() somehow seems incorrect. I am quite new to Python scripting. Can someone guide me if this very inefficient and if yes then how do I achieve this?