0
Can someone tell me why doesn't this work?
3 Answers
+ 3
It's because you can't get a digit by index. You either have to make it a string, or use some method to get a digit
+ 1
annee4 = str(int(annee3[0]) + int(annee3[1]))
annee5 = str(int(annee4[0]) + int(annee4[1]))
0
This doesn't work either, it tells me string index out of range