Guest User

Untitled

a guest
Jan 21st, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. s = ['Happy', 'birthday', 'to', 'you', 'Happy', 'birthday', 'to', 'you', 'Happy', 'birthday', 'to', 'Rujia', 'Happy', 'birthday', 'to', 'you']
  2. item = int(input().strip())
  3.  
  4. arr = [input().strip() for i in range(item)]
  5. j = 0
  6. if item < 16:
  7. iterate = 16
  8. else:
  9. iterate = item
  10.  
  11. for i in range(iterate):
  12. print(arr[j]+":", s[i])
  13. j += 1
  14. if (j == item-1): j = 0
Add Comment
Please, Sign In to add comment