+ 1

Output

Can someone help me understand how to workout the output of something I really donā€™t understand it.šŸ˜”

22nd Dec 2017, 8:21 PM
Izzy
Izzy - avatar
16 Answers
+ 8
Your question should be a = 5 b = 8 c = 2 d = (a+b*c)%c #Explanation: Bodmas b*c = 8 * 2 = 16 a + b * c = 5 + 16 = 21 (a + b * c) % c = 21 % 2 = 1 print(d + a) # d + a = 1 + 5 = 6 ANSWER IS 6
22nd Dec 2017, 8:44 PM
David Akhihiero
David Akhihiero - avatar
+ 7
Refer to my previous answer
22nd Dec 2017, 8:40 PM
David Akhihiero
David Akhihiero - avatar
+ 7
Repetition for emphasis If python answer is error as a, b, c and d are not initialized, A is not the same as a
22nd Dec 2017, 8:43 PM
David Akhihiero
David Akhihiero - avatar
+ 6
Pls what language is this: If python answer is error as a, b, c and d are not initialized, A is not the same as a
22nd Dec 2017, 8:37 PM
David Akhihiero
David Akhihiero - avatar
+ 4
What do you have in mind? Write a more specific question! :) @Sololearn
22nd Dec 2017, 8:27 PM
James16
James16 - avatar
22nd Dec 2017, 8:29 PM
David Akhihiero
David Akhihiero - avatar
+ 4
Pls be more specific Izzy
22nd Dec 2017, 8:31 PM
David Akhihiero
David Akhihiero - avatar
+ 2
One more question What is the output? I=[] N=1 While n<15: l.append(n) n += 1 Print(l[1])
22nd Dec 2017, 8:50 PM
Izzy
Izzy - avatar
+ 1
Ok an example... What is the output of this code? A = 5 B = 8 C = 2 D = (a+b*c)%c Print(d + a)
22nd Dec 2017, 8:35 PM
Izzy
Izzy - avatar
+ 1
Yes it is phython
22nd Dec 2017, 8:38 PM
Izzy
Izzy - avatar
+ 1
ā€œPythonā€ sorry
22nd Dec 2017, 8:38 PM
Izzy
Izzy - avatar
0
Just like overall
22nd Dec 2017, 8:30 PM
Izzy
Izzy - avatar
0
Ohhhh I get it
22nd Dec 2017, 8:42 PM
Izzy
Izzy - avatar
0
And it is python
22nd Dec 2017, 8:51 PM
Izzy
Izzy - avatar
- 1
Ok thanks ...
22nd Dec 2017, 9:51 PM
Izzy
Izzy - avatar
- 1
just practice question and logical question also
23rd Dec 2017, 5:59 AM
Hack Erer
Hack Erer - avatar