Ad
Code
Diff
  • is_programmers_day = lambda d: d.timetuple().tm_yday == 256    
    • # How to check that target date is Programmer's day?
    • def is_programmers_day(date):
    • return date.timetuple().tm_yday == 256
    • is_programmers_day = lambda d: d.timetuple().tm_yday == 256
import re
def remove_numbers(string):
    return re.sub(r"[0-9]","",string)