Discuss / Python / filter作业

filter作业

Topic source

星辰德法

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

def is_palindrome(n):

    str1 = str(n)

    return str1[:] == str1[::-1]


  • 1

Reply