Jan-04-2017, 11:15 PM
(Dec-28-2016, 07:54 PM)micseydel Wrote: Apologies, I tried to reply to this last night but my internet was having issues.
Here's something close to what you want
newList = [(name, int(num), f(time)) for (name, num, time) in myList]where f() is whatever conversion you want for time.
I believe this is preferable over mutating things in-place, as a general habit, but if memory is a concern, you could write a loop over myList in which for each sublist, you use indexes to replace the values with their relative modifications.
Thank you!
it works