Python 1-11 exercise one

Exercise one

[::-1]

input() print(‘’,end=’\n’)

ord() chr()
bin() oct() hex() int() str() list()
encode()

replace() isdigit() isalnum() ‘’.join() split()
insert()


if else
for i in range()
while else

* if * else *

1. Determine whether a number is a palindrome number.

a. What is the number of palindrome?

" Palindrome " refers to a sentence that can be read through both positive and negative readings. It is a rhetorical method and word game in ancient and modern Chinese and foreign countries , such as " I am for everyone, everyone is for me " . In mathematics, there is also such a type of number with such characteristics, known as the palindrome number (palindrome number) .

Guess you like

Origin blog.csdn.net/weixin_43955170/article/details/112703437