Advertisement
zhongnaomi

happynewyear

Jan 28th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. from datetime import datetime,date
  2.  
  3. def happychinesenewyear (name):
  4.     myday = date.today()
  5.     if myday.month==2 and myday.day==5:
  6.         print ("Happy Chinese New Year to " , name, myday)
  7.     else:
  8.         print (myday)
  9.    
  10. happychinesenewyear("Naomi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement