yep but in the second iteration of the for loop i=1 and col[i][1] i.e. col[1][1] still contains an integer, no?
you cannot put len(col[i][1]) as that gives an error object of type 'int' has no len()
Hey, i got it now. you was right. i just started out with a list of empty strings.
(Aug-27-2017, 01:24 PM)Larz60+ Wrote: you cannot compare integers to string.
you need to make both sides the same type, like
if len(word) > len(col[i][1]):
you cannot put len(col[i][1]) as that gives an error object of type 'int' has no len()
(Aug-27-2017, 02:11 PM)ichabod801 Wrote: At the beginning of the for word
loop, yes. But then it gets replaced with a string in the first iteration of that loop, so on the second iteration you get the error.
Hey, i got it now. you was right. i just started out with a list of empty strings.