String in the input list is formatted as 'yyyy-mm-dd hh:mm:ss'. The function should return a list of strings where each element in the returned list contains only the date in the 'yyyy-mm-dd' format e.g
lst = ['2019-11-29 12:50:54', '2019-11-28 12:46:53', '2019-11-27 12:46:10']
expected result ['2019-11-29', 2019-11-28, 2019-11-27']
result = [el[:10] for e in lst]?[k.split()[0] for k in lst]would work as well, but not that good