Advertisement
roman_gemini

Happy Birthday

Jun 27th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from time import sleep
  2.  
  3. name = "Rostik"
  4.  
  5. def sing():
  6.     return ["Happy birthday" + x for x in
  7.             [" to you" if y != 2 else ", dear " + name for y in
  8.              [0, 1, 2, 3]]]
  9.  
  10.  
  11. for r in sing():
  12.     print(r)
  13.     sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement