Advertisement
SansPapyrus683

Loop Exercise 2

May 22nd, 2022
1,365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # Task print out all odd number from 1 to 20
  2. start = 1
  3. end = 20
  4.  
  5. for age in range(start, end):
  6.     if age % 2 == 1:
  7.         print(age)
  8.  
  9. """
  10. if age is an odd number:
  11.    print age
  12. """
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement