Advertisement
SansPapyrus683

Loop Exercise 2

May 22nd, 2022
999
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement