Dec-28-2016, 12:04 AM
Hi,
say I have the following list:
myList = [['john', '1', '2:00pm'], ['becky', '2', '3:15pm'], ['tom', '3', '3:20pm']]
the type of every elements in the inner list is string. How do I change (or what is the pythonic way) to change
the type of the 2nd element in the inner list to integer and the 3rd element to date.time?
Thank you!
say I have the following list:
myList = [['john', '1', '2:00pm'], ['becky', '2', '3:15pm'], ['tom', '3', '3:20pm']]
the type of every elements in the inner list is string. How do I change (or what is the pythonic way) to change
the type of the 2nd element in the inner list to integer and the 3rd element to date.time?
Thank you!