Exercise 4
Write a program in Python that displays the first 100 integers
Solution
1 2 3 4 5 6 7 8 9 10 11 |
# iterate through the first 100 numbers using the for loop for i in range(1,101): print(i) """ after execution the program displays the first 100 numbers: 1 2 . . . 100 """ |
Younes Derfoufi
CRMEF OUJDA
1 thought on “Solution Exercise 4: display of the first 100 numbers in python”