I want to do the following program in python :
def f1():
a=1
return a
def f2():
a=2
return a
r=raw_input("Enter no of functions you want :")
if r=1:
v1=f1() or v2=f2()
elif r=2:
v1=f1()
v2=f2()
How can I do this please help.
Aucun commentaire:
Enregistrer un commentaire