Computer Science, asked by shreyagupta0890, 8 months ago

Write a program to display 1 to 9 numbers using for loop.


its again Python programming....kindly give ans fast

Answers

Answered by priyaagari650
2

Answer:

The for loop prints the number from 1 to 10 using the range() function here i is a temporary variable that is iterating over numbers from 1 to 10. It's worth mentioning that similar to list indexing in range starts from 0 which means range( j ) will print sequence till ( j-1) hence the output doesn't include 6.

Explanation:

please follow me

Similar questions