Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 295 Bytes

File metadata and controls

13 lines (10 loc) · 295 Bytes

What Did I Learn?

In this challenge I learned:

  1. use map to separate the date string into integers when encountering a '-'
y, m, d = map(int, date.split('-'))
  1. Transform into binary by removing the '0b' that Python puts at the beginning
ybin = bin(y)[2:]