Discuss / Python / OVO

IrisBlume

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

def is_palindrome(n):

    list_f = list(str(n))

    return list_f == list(reversed(list_f))

list_m = list(filter(is_palindrome, range(200)))

print(list_m)


  • 1

Reply