Discuss / Python / 卓爷codes

卓爷codes

Topic source

抗抑指南

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

交卓爷

def is_palindrome(n):
    return str(n) == str(n)[::-1]

output = filter(is_palindrome, range(1,1000))
print(list(output))

  • 1

Reply