No products in the cart.

Write a program that reads a …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a program that reads a string and checks whether it is a palindrome string or not?
  • 1 answers

Suyash Pratap 5 years, 6 months ago

S="Mam" # Mam is a palindrome L=S.len() S1="" For i in range (l-1,0,1) S1 =S + S.ch(i) If S1 = S Print("palindrome") Else Print (" not a palindrome ") It is in python language
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers
What is mean by buffering in file handling?
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App