Solution 1

def format_date(year, month, day):
    return "Today is {}-{}-{}".format(year, month, day)

Fix the Date Format

The function provided is broken. Your job is to figure out what's going on and fix it.

Use the tests to guide you.

Test Cases

test - Run Test

def test_format():
    assert format_date(2018, 3, 20) == 'Today is 2018-3-20'
    assert format_date(2015, 1, 19) == 'Today is 2015-1-19'
def format_date(year, month, day): # THIS IS BROKEN # YOUR JOB IS TO FIX IT # You can change this function as much as you want return "Today is {} of {}, {}".format(day, month, year)