Discuss / Python / 打卡Day7

打卡Day7

Topic source

VH立华

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

>>> def is_palindrome(n):

            nn=str(n)

            return nn==nn[::-1]

>>> print(list(filter(is_palindrome,range(1,1000))))


  • 1

Reply