[Tutor] failed to load functions,
lina
lina.lastname at gmail.com
Fri Nov 11 18:06:27 CET 2011
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,
More information about the Tutor
mailing list