I have a list of lists each with 11 strings. The last string is an 8-digit code where I need to retain the first three digits but delete the last five.
I'm pretty sure this can be done using indexing and slicing. An example using lists with 5 entries instead of 11.
Example =
[['a','b','c','d','2020BG1C'],['e','f','g','h','1997AF33'],['i','j','k','l', '1566IL2L']]
Desired_Outcome =
[['a','b','c','d','202'],['e','f','g','h','199'],['i','j','k','l', '156']]