Discuss / Python / 作业233

作业233

Topic source

Phioton

#1 Created at ... [Delete] [Delete and Lock User]
def is_palindrome(n):
    n_rev=''
    for i in str(n):
         n_rev=i+n_rev
    return str(n) == n_rev

  • 1

Reply