当前位置:网站首页>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')边栏推荐
猜你喜欢

VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard

visio如何快速生成相同的图案,生成图像矩阵
![[computer level 3 information security] overview of information security assurance](/img/f0/a72e61fda58ea93ca4e9db7274f6e3.png)
[computer level 3 information security] overview of information security assurance

多线程进阶:volatile的作用以及实现原理

ByteBuffer. Position throws exception illegalargumentexception

个人写的一个文件上传工具网站

Operation and use of collection framework

repackag failed: Unable to find main class

visio如何精确控制图形的大小和位置及角度

After ruoyi generates the code corresponding to the database, what should I do to make the following image look like
随机推荐
Use of IO streams
Bean的作用域、执行流程、生命周期
C language: addition and deletion of linked list in structure
openjudge:病人排队
24小时内的时间段无交叉
BigDecimal rounds and retains two decimal places
JVM篇 笔记4:内存模型
Long和Integer如何进行比较,为什么报错
多线程进阶:volatile的作用以及实现原理
SSLError
MySQL practice 45 lectures
架构设计思考合集
IO流的使用
[computer level 3 information security] overview of information security assurance
ByteBuffer.position 抛出异常 IllegalArgumentException
mybaties foreach多选查询,index循环,取消and/or标签
openjudge:万年历
List < long >, list < integer > convert each other
oracle查看锁表语句、解锁方法
Example of main diagram of paper model