Guest User

Untitled

a guest
Apr 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. n = 4
  2. for i in range(n):
  3. for j in range(n):
  4. print(i, end='') # end='' so that we keep writing to the same line
  5. print() # skip to the next line
  6.  
  7. # OUTPUT:
  8. # 0000
  9. # 1111
  10. # 2222
  11. # 3333
Add Comment
Please, Sign In to add comment