+ 2

I can't understand these type of program. How should I solve this?

b=0 for a in range(0,9): if(a%2!=0): b+=a print(“b=”,b)

11th Oct 2020, 6:57 AM
Anonymous
Anonymous - avatar
6 Answers
+ 6
U can solve any of these kinds of questions by PRACTISE. First of all,u should LEARN all functions and syntaxes if python, Then,start solving problems. U will get used to it by practise what u learn.
11th Oct 2020, 7:03 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 4
Yes bruh,U can learn python from Sololearn
11th Oct 2020, 7:10 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 3
And also u can start python learning from sololearn: https://www.sololearn.com/Course/Python/
11th Oct 2020, 7:09 AM
The future is now thanks to science
The future is now thanks to science - avatar
+ 3
Alphin K Sajan Koral Q thank you for helping me!!
11th Oct 2020, 7:13 AM
Anonymous
Anonymous - avatar
+ 1
Alphin K Sajan ohh ok. can we code this??
11th Oct 2020, 7:11 AM
Anonymous
Anonymous - avatar
+ 1
Koral Q Im learning from that and I haven't completed that course 😅
11th Oct 2020, 7:12 AM
Anonymous
Anonymous - avatar