Summation inputs | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Summation inputs

How do I get this code to add the values of inputs instead of just printing them next to each other? This is what I have now: from functools import reduce from math import gamma import math as m n=input(["","","",""]) print(m.gamma(int(reduce(lambda x,y: x+y, n))))

18th Mar 2020, 3:03 PM
Norm
Norm - avatar
2 Respuestas
+ 1
ok!
18th Mar 2020, 3:32 PM
Norm
Norm - avatar
+ 1
thx
18th Mar 2020, 3:32 PM
Norm
Norm - avatar