I have tried multiple ways to convert this, but all were unsuccessful. For example, my list is.
testscores= [['John', '99', '87'], ['Tyler', '43', '64'], ['Billy', '74', '64']]
I want to convert only the numbers to intergers because I will eventually average the actual scores later on and leave the names in a string.
I want my result to look like
testscores = [['John', 99, 87], ['Tyler', 43, 64], ['Billy', 74, 64]]
I've tried numerous for loops to try and only int the numbers in these lists but none have worked at all. If any of you need some of my test code, I can add. Thanks.
[name, score1, score2]?