Комментарии:
गणेश शिव पार्वती जी गुरू भगवान माता पिता जी धन्यवाद मुझे ये सिखाने और दिखाने के लिए ❤🎉 बसंत पंचमी और महाकुंभ की शुभकामनाएं
ОтветитьThank you for explaining why you did each step
ОтветитьAwesomeness
ОтветитьI have a question , Did you give the input string value as abcde or abcdef ?
ОтветитьI want to add one note I noticed it when I wrote Racecar R only in upper case the result is non-palindrome although the same word in lower case is palindrome to fix this error we can use casefold() after setting the string to convert upper case to lower case I tried it and work
ОтветитьThanx
Ответитьx = input("enter a string: ")
i = len(x) - 1
rev = ""
while i >= 0:
rev = rev + x[i]
i = i - 1
print(rev)
if rev == x:
print("palindrome")
else:
print("not palindrome")
Thank you
ОтветитьThanks for this video, Before i think its too difficult but now i know how to do this , it is very easy .
Again thanks 😊
Thanks for the help!
Ответитьomg u r awesmee tysm
Ответитьstring=raw_input("Enter string:")
if(string==string[::-1]):
print("The string is a palindrome")
else:
print("The string isn't a palindrome")
This video was a lifesaver. Thanks so much.
ОтветитьSir would you please tell me that why you made print statements into comments is it necessary .please reply sir...
Ответить