Discuss / Python / day7.交作业

day7.交作业

Topic source

小太郎tail

#1 Created at ... [Delete] [Delete and Lock User]

def is_palindrome(n):
n1=str(n)
if n1==n1[::-1]:
return n
out=filter(is_palindrome,range(1,1000))
print(list(out))


  • 1

Reply