English

Write the output from the following code: s = 0 for I in range(10,2,-2): s+=I print "sum= ",s

Advertisements
Advertisements

Question

Write the output from the following code:

s = 0
for I in range(10,2,-2):
    s+=I
print "sum= ",s
Code Writing
Advertisements

Solution

sum=  28
shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Review of Phython - EXERCISE [Page 24]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 1 Review of Phython
EXERCISE | Q 1. c. | Page 24
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×