Discuss / Python / Q群:521829079

Q群:521829079

Topic source

Todayzhou

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

诚交热爱python的童鞋,仅供python交流。 Q群是刚创建的,最近看廖老师的教程有很多头痛的地方,如果有人也是这样,不妨加一下这个Q群,共同进步! 先谢谢各位了。

def is_palindrome(n):
    return str(n) == str(n)[::-1]

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

  • 1

Reply