Discuss / Python / 作业

作业

Topic source

蓬蓬哇

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

def is_palindrome(n):

    s1=str(n)

    s2=s1[::-1]

    if s1==s2:

        return n

    else:

        pass


  • 1

Reply