Hi, sorry for the new post:
if __name__=="__main__": for i in range(97,100): for j in range(97,100): if i != j: s1=chr(i)+"List" s2=chr(j)+"List" '''print(s1,s2)''' LongestCommonSubstring(s1,s2) I am surprised the results showed like below: $ python3 CommonSubstring.py Lis List Lis List Lis List Lis List Lis List Lis List and print(s1,s2) '''LongestCommonSubstring(s1,s2)''' showed me: aList bList aList cList bList aList bList cList cList aList cList bList exactly I wanted, but seems s1, s2 failed to go into functions. Thanks, _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor