Skip to main content
added 3 characters in body
Source Link
avarice
  • 12.5k
  • 1
  • 21
  • 52

Python 3, 74 7272 65 bytes

lambda x:print((date.today()+timedelta(0,x)).year) from datetime import* 

Try it online!Try it online!

-27 bytes thanks to @movatica@Eric

Python 3, 74 72 bytes

lambda x:print((date.today()+timedelta(0,x)).year) from datetime import* 

Try it online!

-2 bytes thanks to @movatica

Python 3, 74 72 65 bytes

lambda x:(date.today()+timedelta(0,x)).year from datetime import* 

Try it online!

-7 bytes thanks to @Eric

added 46 characters in body
Source Link
avarice
  • 12.5k
  • 1
  • 21
  • 52

Python 3, 7474 72 bytes

from datetime import* f=lambdalambda x:print((date.today()+timedelta(0,x)).year) from datetime import* 

Try it online!Try it online!

-2 bytes thanks to @movatica

Python 3, 74 bytes

from datetime import* f=lambda x:print((date.today()+timedelta(0,x)).year) 

Try it online!

Python 3, 74 72 bytes

lambda x:print((date.today()+timedelta(0,x)).year) from datetime import* 

Try it online!

-2 bytes thanks to @movatica

Source Link
avarice
  • 12.5k
  • 1
  • 21
  • 52

Python 3, 74 bytes

from datetime import* f=lambda x:print((date.today()+timedelta(0,x)).year) 

Try it online!