+ 2

def funA(x,y,z):>>> return (x+y)*z>>> def funB (x,y): >>>return x-y>>> print funA(4,funB(2,3), funB(3,2)) ok what is the answer

Python is killing me

10th Jun 2018, 5:55 AM
Leonardo Monterey
Leonardo Monterey - avatar
4 Antworten
+ 1
ok thanks, I know I have to wrap my brain around it, however seriously I have a couple more I have to ask help with, it's they are from an app called Python Challenge on Android.
10th Jun 2018, 5:57 PM
Leonardo Monterey
Leonardo Monterey - avatar
+ 1
OMG the answer was the order of proceeding :p I feel kinda dumb :p
10th Jun 2018, 5:59 PM
Leonardo Monterey
Leonardo Monterey - avatar
+ 1
What is the answer, I think ans is 3. am I right or wrong?
12th Apr 2020, 3:13 PM
YA Noor
YA Noor - avatar
0
yes the answer is 3 B 2-3=-1 B 3-2=1 A(4-1) *1=3
12th Apr 2020, 8:46 PM
Leonardo Monterey
Leonardo Monterey - avatar