English

Write for statement to print the following series: 10, 20, 30, ..., 300

Advertisements
Advertisements

Question

Write for statement to print the following series:

10, 20, 30, ..., 300

Code Writing
Advertisements

Solution

for i in range(10, 301, 10):
    print(i, end=", ")
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 2. a) | Page 24
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×