0

How can plus1 to 100 odd number

sum=0 for i range(1,101): sum=sum+count

25th Mar 2017, 2:44 PM
ì •ì€íŹ
ì •ì€íŹ - avatar
2 Answers
0
sum( [ i for i in range(1,100,2)])
25th Mar 2017, 2:56 PM
SAMI Awad
SAMI Awad - avatar
0
we cant use range(1,100,2) only range(1,100)
26th Mar 2017, 3:37 AM
ì •ì€íŹ
ì •ì€íŹ - avatar