Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. def print_seating(rows, seats, seating):
  2. seating_num = 0
  3. for i in range(rows):
  4. seating_num += 1
  5. print('{:>2}{}'.format(seating_num, SPACE*3), end = '')
  6. for j in range(seats):
  7. seats_l = seating[i][j]
  8. print(seats_l, end = ' ')
  9. for j in range(seats):
  10. print(end = ' ')
  11. for j in range(seats, seats * 2):
  12. seats_r = seating[i][j]
  13. print(seats_r, end = ' ')
  14. print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement