+ 2

How many parameters does this have?

def j (a, b): e = a + b return e I thought there were three but I got the question wrong. I don't understand why.

8th Jun 2017, 6:32 AM
Fire Breathing Moon Beam
Fire Breathing Moon Beam - avatar
5 Respostas
+ 19
2 only the ones inside parentheses....
8th Jun 2017, 6:35 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
the value inside the parenthesis are the parameters while e is just a variable
8th Jun 2017, 6:37 AM
P R
P R - avatar
+ 2
yeah only two
8th Jun 2017, 6:36 AM
_Retr0/-
_Retr0/- - avatar
+ 2
j is the function name I suppose and a and b r the parameters
8th Jun 2017, 6:36 AM
_Retr0/-
_Retr0/- - avatar
+ 1
Okay, thank you guys. :)
8th Jun 2017, 6:38 AM
Fire Breathing Moon Beam
Fire Breathing Moon Beam - avatar