[Solved] How do I change a list into integers on Python? [closed]
Before anything, make your tuple into a list. A list is easier to work with as it is mutable (modifiable), whereas a tuple is not. >>> dates = list((’01/01/2009′, ’02/01/2009′, ’03/01/2009′, ’04/01/2009′)) >>> dates [’01/01/2009′, ’02/01/2009′, ’03/01/2009′, ’04/01/2009′] Request number one, strings of integers: >>> answer1 = [item[:2] for item in dates] # Here we … Read more