Lesson 1 of 0
In Progress

Current Year Extraction

Kedeisha June 16, 2023

Write a Python function that returns the current year.

Explanation of Solution: The function get_current_year uses the now method from the datetime module to get the current date and time. The year attribute of the resulting datetime object represents the current year.