当前位置:网站首页>Openjudge: judge whether the string is palindrome
Openjudge: judge whether the string is palindrome
2022-07-28 05:36:00 【Programmer system】
describe
Enter a string , Output whether the string is palindrome . Palindrome refers to a string that reads both forward and backward .
Input
Enter as a line of string ( There are no white space characters in the string , The string length does not exceed 100).
Output
If the string is a palindrome , Output yes; otherwise , Output no.
Instance input
abcdedcba
Instance output
yes
Code
a = input()
if a == a[::-1]:
print('yes')
else:
print('no')边栏推荐
猜你喜欢
![[computer level 3 information security] overview of information security assurance](/img/f0/a72e61fda58ea93ca4e9db7274f6e3.png)
[computer level 3 information security] overview of information security assurance

How about ink cloud?

ECCV22 最新54篇论文主图整理

Long和Integer如何进行比较,为什么报错

BigDecimal 进行四舍五入 四舍六入和保留两位小数

Scope, execution process and life cycle of bean

Operation and use of collection framework

SSLError
Printf function of input and output function in C language

Video twins: the starting point of informatization upgrading of smart Parks
随机推荐
Feignclient calls the get method and reports an error resultvo{result= unknown exception. Exception details: request method 'post' not supported
[singleton mode] thread safety of lazy mode
What are the methods of array objects in Es5 and what are the new methods in ES6
正则表达式
子父线程交互
GET与POST区别
Digital twin solutions inject new momentum into the construction of chemical parks
New methods and features of ES6 built-in objects
visio如何快速生成相同的图案,生成图像矩阵
Localdatetime removes T, and jsonfield is invalid
openjudge:统计数字字符个数
Image enhancement - msrcr
Test Development - UI testing in automated testing
URL 形式
MySQL practice 45 lectures
ResNet结构对比
BeanUtils.copyProperties无法复制不同List集合问题解决 Lists.transform函数
SSM project quick build project configuration file
Problems encountered when the registry service Eureka switches to nocas
2022 summer practice (first week)