human
how to get number of days in year in.
assistant
Here is a Python function to get number of days in year

import math

def get_number_of_days_in_year(year):
    """
    Get number of days in year.
    """
    return 365 + (366 if year % 4 == 0 else 365) + (365 if year % 100 == 0 else 366) + (365 if year % 400 == 0 else 366)

# Enter the year
year = 2018

# Calling the function
print((get_number_of_days_in_year(year)))

#Example Output
# 1462

#Remember to inspect code for bugs.