a=str(input("Enter num To Start FunctionOne"))
if(a == '1'):
one()
elif (a == '2'):
tow()
def one():
print('Good')
def tow():
print('Very Good')
Error
Enter numper To Start FunctionOne1
Traceback (most recent call last):
File "C:/Users/Hacker/Desktop/complex program.py", line 3, in <module>
one()
NameError: name 'one' is not defined
You need to define the functions before calling them:
If you call a function but the function is defined below it then it won't work because Python doesn't know yet what that function call is supposed to do.