Frequently Asked Python Program 20:Check String is Palindrome or Not

Frequently Asked Python Program 20:Check String is Palindrome or Not

SDET- QA

5 лет назад

107,730 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@अभयदीप-ज1ग
@अभयदीप-ज1ग - 01.02.2025 15:39

गणेश शिव पार्वती जी गुरू भगवान माता पिता जी धन्यवाद मुझे ये सिखाने और दिखाने के लिए ❤🎉 बसंत पंचमी और महाकुंभ की शुभकामनाएं

Ответить
@martiniquethestoryteller5716
@martiniquethestoryteller5716 - 12.04.2024 01:24

Thank you for explaining why you did each step

Ответить
@heenashaikh3350
@heenashaikh3350 - 18.06.2023 22:13

Awesomeness

Ответить
@SN-pm5pp
@SN-pm5pp - 19.02.2023 09:50

I have a question , Did you give the input string value as abcde or abcdef ?

Ответить
@salahessammohamed4415
@salahessammohamed4415 - 06.02.2023 21:41

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

Ответить
@samhitap7828
@samhitap7828 - 24.01.2023 17:49

Thanx

Ответить
@op9301
@op9301 - 18.02.2022 11:49

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")

Ответить
@gauravsavlani5725
@gauravsavlani5725 - 08.12.2021 10:20

Thank you

Ответить
@ADITYAKUMAR-td5xf
@ADITYAKUMAR-td5xf - 15.09.2021 09:56

Thanks for this video, Before i think its too difficult but now i know how to do this , it is very easy .
Again thanks 😊

Ответить
@LeviElekes
@LeviElekes - 29.08.2021 22:34

Thanks for the help!

Ответить
@amrt.suresh
@amrt.suresh - 30.05.2021 13:13

omg u r awesmee tysm

Ответить
@jayannraet7880
@jayannraet7880 - 05.05.2021 04:07

string=raw_input("Enter string:")
if(string==string[::-1]):
print("The string is a palindrome")
else:
print("The string isn't a palindrome")

Ответить
@chrisescalante4059
@chrisescalante4059 - 09.12.2020 23:38

This video was a lifesaver. Thanks so much.

Ответить
@lokeshmacharla6322
@lokeshmacharla6322 - 29.09.2020 11:21

Sir would you please tell me that why you made print statements into comments is it necessary .please reply sir...

Ответить