aboutsummaryrefslogtreecommitdiff
path: root/challenge-332/eric-cheung/python/ch-1.py
blob: 08082990c18214ee7a0b0fea0aa50144f45f7462 (plain)
1
2
3
4
5
6
7
8
## strInputDate = "2025-07-26"  ## Example 1
## strInputDate = "2000-02-02"  ## Example 2
strInputDate = "2024-12-31"  ## Example 3

arrBinDate = ["{0:b}".format(int(strElem)) for strElem in strInputDate.split("-")]

print ("-".join(arrBinDate))