Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- people = []
- song = ["Happy", "birthday", "to", "you", "Happy", "birthday", "to", "you", "Happy", "birthday", "to", "Rujia", "Happy", "birthday", "to", "you"]
- for i in range(n):
- people.append(input().title())
- i = j = 0
- flag = False
- while True:
- print("{:s}: {:s}".format(people[i], song[j]))
- if (i == n - 1):
- flag = True
- if (j == (len(song) - 1) and flag):
- break;
- i += 1
- j += 1
- if (i >= n):
- i = 0
- if (j >= len(song)):
- j = 0
Add Comment
Please, Sign In to add comment