SHARE
TWEET

Untitled

a guest Oct 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #1
  2. #2 2
  3. #3 3 3
  4. #4 4 4 4
  5. #5 5 5 5 5
  6.  
  7. user_rows = int( input() )
  8.  
  9. for row in range(1, user_rows + 1):
  10.     #Pattern
  11.     print( " ".join( str(row) for number in range(1, row + 1)), end = '' )
  12.  
  13.     #New line at every line except last one
  14.     if not row == user_rows:
  15.         print("")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top