English

Write for statement to print the following series: 105, 98, 91, ..., 7

Advertisements
Advertisements

Question

Write for statement to print the following series:

105, 98, 91, ..., 7

Code Writing
Advertisements

Solution

for i in range(105, 6, -7):
    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. b) | Page 24
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×