Question: 
Write a function to convert a date of yyyy-mm-dd format to dd-mm-yyyy format.


Model's Code:
def change_date_format(date):
    year, month, day = date.split('-')
    return f'{day}-{month}-{year}'



Sample Correct Code:
import re
def change_date_format(dt):
        return re.sub(r'(\d{4})-(\d{1,2})-(\d{1,2})', '\\3-\\2-\\1', dt)
        return change_date_format(dt)


Asserts:
assert change_date_format('2026-01-02')=='02-01-2026'
assert change_date_format('2021-01-04')=='04-01-2021'
assert change_date_format('2030-06-06')=='06-06-2030'


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 928 of 974: 711/928 (76.61637931034483%): success