Hi,
Could you tell me the most pythonic way to make this transformation:
Could you tell me the most pythonic way to make this transformation:
day='181212' newday='2018-12-12'I did this, but I don't like it:
newday = '20' + day[0] + day[1] + '-' + day[2] + day[3] + '-' + day[4] + day[5]Thanks