题目:
代码:
Number=int(input())
a=0
for i in range(Number):
A=input()
if a<len(A):
Jia=A
a=len(A)
print("The longest is: %s"%(Jia))
结果:
Number=int(input())
a=0
for i in range(Number):
A=input()
if a<len(A):
Jia=A
a=len(A)
print("The longest is: %s"%(Jia))