Write a program to display 1 to 9 numbers using for loop.
its again Python programming....kindly give ans fast
Answers
Answered by
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
Math,
3 months ago
Political Science,
3 months ago
Math,
8 months ago
Science,
1 year ago
Math,
1 year ago