suppose I have two files File1.py and then File2.py and the Multiple Functions Written in the Files, and then I have the main.py file where I am calling the File1.py functions using getattr builtin function. after reading one by one function of the File1.py now I want to call the File2.py Functions.
File1.py
def function1():
print('function 1')
def function2():
print('function 2')
def function3():
print('function 3')
File2.py
def function1():
print('function 1')
def function2():
print('function 2')
def function3():
print('function 3')
main.py
import File1
import File2
'''
here I want to call Both File Functions One By one simultaneously Using getattr function.
'''