Why it is impossible in python to return this ?! Instead of writing each operation (too long) ? def (num1,num2): L=[+,*,/] for i in range (len(L)) : return num1 i num2 #for eg num1=2 and num2=4
Apprenez de maniĂšre plus efficace, gratuitement :
Introduction Ă Python
7.1M apprenants
Introduction Ă Java
4.7M apprenants
Introduction Ă C
1.5M apprenants
Introduction Ă HTML
7.5M apprenants