human
Give me a Python function to get start date and end date of week.
assistant
Here is a Python function to get start date and end date of week

import datetime

def get_start_end_date():
    """Get start date and end date of week."""
    return (datetime.datetime.now() - datetime.timedelta(days=7), datetime.datetime.now())

# Enter the date
date = datetime.datetime.now()

# Calling the function
start_date, end_date = get_start_end_date()

# Printing the start date
print(start_date)

# Printing the end date
print(end_date)

#Example Output
# 2023-01-09 05:03:54.456107
# 2023-01-16 05:03:54.456111

#Remember to inspect code for bugs.