Computer Science, asked by aakanksha154, 7 months ago

FOR X = 1 to 10 STEP 2 , PRINT X , NEXT X *

1,2,3,4,5,6,7,8,9,10
1, 3, 5, 7, 9​

Answers

Answered by harshitsood84
1

Answer:

Explanation:

Prints out the numbers 0,1,2,3,4

for x in range(5):

   print(x)

# Prints out 3,4,5

for x in range(3, 6):

   print(x)

# Prints out 3,5,7

for x in range(3, 8, 2):

   print(x)

Similar questions