I have a function
def output5() :
print("OK")
def output5() :
print("no")
def output5() :
print("yes")
So If I make code like this
output5()
output6()
output7()
it will say ok no yes
And I have a file output.txt and there are messages follow:
output5()
output6()
output7()
I wanted to implement a function in python like:
a=open('output.txt').readlines()
a
so that ok no yes would be printed
but it only says:
'output5()\n', 'output6()\n', 'output7()\n'
not ok no yes
how can I execute functions included in txt file?