+ 1

Operations in Python *,+,-,/

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

10th Nov 2018, 8:26 PM
FitBug
FitBug - avatar
1 ответ
0
thank you ! your code is very intersting ( I am a biginner in python I wish I will be able to think of diffirent types of solution by more practice)
10th Nov 2018, 8:44 PM
FitBug
FitBug - avatar