0

I don't understand why I can't make a sum of two functions that returns an int value. For example: def N1(): x=3 return x def N2(): y=4 return y print (N1+N2)

29th Aug 2016, 12:02 PM
Alejandro Pérez Moreno
Alejandro Pérez Moreno - avatar
3 Réponses
+ 5
did you try N1() + N2()?
29th Aug 2016, 12:21 PM
Siddhartha Ghosh
Siddhartha Ghosh - avatar
+ 1
OMG, I feel so silly xD. Yes, it was that. Thanks :)
29th Aug 2016, 12:45 PM
Alejandro Pérez Moreno
Alejandro Pérez Moreno - avatar
+ 1
you decalre function N1() and N2() but you don't use them as function try print (N1()+N2())
30th Aug 2016, 6:56 PM
beauty1234