Discuss / Python / assignment

assignment

Topic source

stupid_seeker

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

def is_palindrome(n):

while str(n)[::-1] == str(n):
    return n

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


  • 1

Reply