I have a Python 3.2.2 program and within it is a list that is something like this:
['January 26, 1991', 'February 29, 2012', 'December 10, 2094']
without using a million “if” statements, how might I take the list and change it or create a new list that looks like this:
['01261991', '02292012', '12102094']
basically convert the full date format into a mmddyyyy format?
I’ve looked at a variety of other questions on here and can’t seem to find one like this already. If anybody could point me in the right direction that would be great!
In case you don’t wanna use any
modulesyou can try this: