Palindrome Program in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 151

  • @judeaf.4393
    @judeaf.4393 2 ปีที่แล้ว +43

    You made this super simple to understand. Now I can do a deep dive on this concept now that I know the basic concept. Thank you sir for this video. Greatly appreciate it.

  • @meyou3135
    @meyou3135 หลายเดือนก่อน +1

    Thank you so much for this simple method. I was literally struggling with this and tomorrow's my exam. Your video helped me so much. Thank you for this.
    You are so underrated, dude. Keep going.💪🏻

  • @vishnureddy34
    @vishnureddy34 3 ปีที่แล้ว +62

    this question was asked in amazon interview

  • @ajitmoseschaparla2117
    @ajitmoseschaparla2117 3 ปีที่แล้ว +11

    please do not say if u dont like it hit dislike coz there isnt any point of disliking ur explanation great one mate

  • @jasonthomas9975
    @jasonthomas9975 ปีที่แล้ว +4

    the code for this same program is given in a very big way in cbse. urs is super small and suuuper simple. thank u for the help.

  • @INFINITE_VOID_11
    @INFINITE_VOID_11 ปีที่แล้ว +1

    Couldn't find the class notes so i came to yt...directly found the easiest way... thank you bro!!

  • @solvewithme6819
    @solvewithme6819 ปีที่แล้ว +10

    Thanks sir 😊 my teacher teach this topic in very difficult manner, you made this easy thanks a lot sir👏👏🌹🍾

  • @RanjanLal_
    @RanjanLal_ ปีที่แล้ว +3

    Super simple,,, i just subscribed your channel because of this program otherwise at my school it is super lengthy and confusing

  • @samuelabera8262
    @samuelabera8262 ปีที่แล้ว +3

    You saved my grade.I was really challenging myself to understand palindrome and i used a different method for string and number,but the code you explained works for both string and number at once.thanks alot

  • @lovelyvenkat5858
    @lovelyvenkat5858 11 หลายเดือนก่อน +1

    Broo, it is amazing...So simple to understand your explanation is superb...❤

    • @ExampleProgram
      @ExampleProgram  11 หลายเดือนก่อน

      Thank you so much 😀

  • @jagdish8119
    @jagdish8119 11 วันที่ผ่านมา +2

    Really helpful ❤

  • @malavikarnambiar7901
    @malavikarnambiar7901 3 หลายเดือนก่อน +1

    this was so easy to understand!!! thank you!!!

  • @vedantstudy_09
    @vedantstudy_09 5 หลายเดือนก่อน +1

    you can understand student's feeling...thank you

  • @karthickvishal4286
    @karthickvishal4286 หลายเดือนก่อน +1

    Thank yuo so much brother
    it was very very useful

    • @ExampleProgram
      @ExampleProgram  หลายเดือนก่อน

      Glad my video helped you :)

  • @anishdiwaker2341
    @anishdiwaker2341 3 ปีที่แล้ว +13

    Thank you so much for this sir it was the easiest way to understand

  • @vineethkurapati5254
    @vineethkurapati5254 2 ปีที่แล้ว +2

    thanku sir,
    its much better usefull beginner like me. understanding in very easy way.

  • @DIFFERENTCREATOR
    @DIFFERENTCREATOR 3 ปีที่แล้ว +3

    Bro you are a very very very .... good python programmer 👍👍

  • @sowjanyasuresh7161
    @sowjanyasuresh7161 ปีที่แล้ว +1

    crisp explanation

  • @r7anubis758
    @r7anubis758 ปีที่แล้ว +1

    I think this is one of the easiest methods. Other methods involve taking the length of the word, dividing it by 2, and some further processes.

  • @sonamgyansapa6298
    @sonamgyansapa6298 ปีที่แล้ว +1

    In our college this simple program is also seems like a hard one wtf
    Buh u teach well now i can do it for my exam
    Buh i have a que what if que is like wapp to adisplay a palindrome using while and if else

    • @ExampleProgram
      @ExampleProgram  ปีที่แล้ว

      i will try to make video about using loop and if else for palindrome program.
      to be honest, the method explained in your college will help you to learn programming in a better way.

  • @47_i_yashawasthi29
    @47_i_yashawasthi29 ปีที่แล้ว +1

    Thanks broo
    It helps

  • @VihaanBudhraja
    @VihaanBudhraja 8 หลายเดือนก่อน +1

    Great vid, "if you didnt like then hit the dislike button" really got me

  • @SakthiAnandA
    @SakthiAnandA 19 วันที่ผ่านมา +1

    it was helped me bro thanks a lot

  • @arabiamir4751
    @arabiamir4751 ปีที่แล้ว +1

    Hello
    I find your tutorial so easy to understand.
    If I need a help for a particular problem, how can I reach you pls?

  • @lukyluca46
    @lukyluca46 2 ปีที่แล้ว +6

    could you help me with adding palindromes to text file? here is code: string = input('Enter the string: ')
    reverse_string = string[::-1]
    if string == reverse_string:
    print('string is palindrome')
    else:
    print('string is not palindrome')

  • @VarburnCeator678
    @VarburnCeator678 หลายเดือนก่อน +1

    Thank you sir❤

  • @Harikumar_ganesh
    @Harikumar_ganesh ปีที่แล้ว +1

    Very clear bro

  • @Prassana_moorthy
    @Prassana_moorthy ปีที่แล้ว +1

    Really helpful , thank you so much 🎉

  • @TejaswaniARTS7340
    @TejaswaniARTS7340 3 ปีที่แล้ว +2

    Why u r using in syntax these columns etc In python it no need right ?

    • @ExampleProgram
      @ExampleProgram  3 ปีที่แล้ว

      that is syntax highlighting provided by the editor

  • @jeevanrahul
    @jeevanrahul 8 หลายเดือนก่อน

    Wonder why your school/college taught a lengthy code?
    Because, Using that method avoids the need to convert the number to a string, which can be less efficient in terms of memory usage and performance compared to arithmetic operations. However, both approaches are valid, and the choice depends on factors such as readability, performance requirements, and personal preference.

  • @davidee2183
    @davidee2183 2 ปีที่แล้ว +2

    bro do you now why it doesn't work with 'eval' command? the video is very usefull thanks

  • @sriharsha_10
    @sriharsha_10 ปีที่แล้ว +1

    error: int object not subscriptable. Doesnt work in leetcode and other testing platforms.

  • @onlyfun2505
    @onlyfun2505 ปีที่แล้ว +1

    Thanks
    you made very easer this topic

  • @rishiraj6140
    @rishiraj6140 2 ปีที่แล้ว +1

    so simple , thank you sir

  • @harrypotter-eq3zu
    @harrypotter-eq3zu 2 ปีที่แล้ว +1

    man said if you dont like it hit the dislike button.this is somthing you will never hear in youtube

  • @danielalarcons1584
    @danielalarcons1584 2 ปีที่แล้ว +1

    Thank you so so much! Really simple to understand

  • @ganvichouhan4997
    @ganvichouhan4997 2 ปีที่แล้ว +1

    Thank you so much..♥️

  • @totothecat9401
    @totothecat9401 2 ปีที่แล้ว +1

    Thank you so much!

  • @BankoleAyodeleMEG
    @BankoleAyodeleMEG 2 ปีที่แล้ว +1

    Thanks man

  • @mishuk2008
    @mishuk2008 หลายเดือนก่อน

    what if the first letter is a capital, or checking a two word palindrome such as Bird rib

  • @MohammedKaleem95
    @MohammedKaleem95 2 ปีที่แล้ว +1

    Bro if first letter is capital in Madam word then how to check, Bec it says it's not palindrom if I put first letter of madam in capital letter!! Can you help me with syntax!!

    • @ExampleProgram
      @ExampleProgram  2 ปีที่แล้ว

      convert your input string to lower case or upper case and then apply this code

    • @MohammedKaleem95
      @MohammedKaleem95 2 ปีที่แล้ว

      @@ExampleProgram Bro i did! I converted into lower upper and Even tried title function still not work.

  • @dd4khufia547
    @dd4khufia547 ปีที่แล้ว +1

    Can you please give one for Fibonacci series and Armstrong number too?

  • @sakshisapkale3507
    @sakshisapkale3507 2 ปีที่แล้ว

    easiest one !! Thanks A LOOOOTTTT

  • @AchalModake1106
    @AchalModake1106 2 ปีที่แล้ว +1

    Nicely explained 👌 thanks sir 🙏

  • @-Sahasra-bg7yw
    @-Sahasra-bg7yw 3 ปีที่แล้ว +1

    It would be beneficial if u explain tracing too

    • @ExampleProgram
      @ExampleProgram  3 ปีที่แล้ว

      will try to do in upcoming video's :)

  • @jianaguelo7684
    @jianaguelo7684 2 ปีที่แล้ว +1

    Thank you so much

  • @rao1199
    @rao1199 ปีที่แล้ว +1

    very easy program

  • @SheelaDevi-wn4rb
    @SheelaDevi-wn4rb 4 ปีที่แล้ว +2

    Very good 👍👌 I loved it

  • @tamildevineseries3157
    @tamildevineseries3157 3 หลายเดือนก่อน

    Sir can you explain slice method in manual

  • @JJJJ-gl2uf
    @JJJJ-gl2uf 2 ปีที่แล้ว

    Good work here.

  • @tarlan5966
    @tarlan5966 3 ปีที่แล้ว +1

    very short and useful

  • @poiuytrewq-d8e
    @poiuytrewq-d8e 6 หลายเดือนก่อน +1

    TQ

  • @sky_._
    @sky_._ 2 ปีที่แล้ว +1

    Love you bro

  • @azizulhaouqe4150
    @azizulhaouqe4150 2 ปีที่แล้ว

    We can use recursion

  • @ajosecortes
    @ajosecortes 3 ปีที่แล้ว +2

    Woow. Nice

  • @mayank9447
    @mayank9447 3 ปีที่แล้ว +1

    Sir ise aur easy karne ke liye no ko string mein fir list mein convert kar do fir wo list ko no[::-1] ==no karne se pata chal jayega

    • @ExampleProgram
      @ExampleProgram  3 ปีที่แล้ว

      yahan mein number ko kaise check kar sakte hain uske baare mein bataya hoon.
      aapne jo kaha wo bhi kar sakte hain

  • @sumitsonar5683
    @sumitsonar5683 3 ปีที่แล้ว +1

    thank you so much u taught in the easiest way

  • @joshikaran-zm2ju
    @joshikaran-zm2ju ปีที่แล้ว

    st = input("enter")
    if st[::-1] == st:
    print ("palindrom")
    else:
    print("not")

  • @maheshshingade8299
    @maheshshingade8299 11 หลายเดือนก่อน +1

    But this is not for int data type

  • @TheRAGE-d5i
    @TheRAGE-d5i 3 ปีที่แล้ว

    sir did you have a big process for finding

  • @bhavanshipatel2091
    @bhavanshipatel2091 2 ปีที่แล้ว

    THANKSSS ANYWAYS

  • @rajasaror1911
    @rajasaror1911 2 ปีที่แล้ว

    Please can u explain using nested for loop and if condition otherwise please tell after first for loop iteration in it another for loop and first iteration later how should I go to first for loop

    • @rajasaror1911
      @rajasaror1911 2 ปีที่แล้ว

      Without checking second iteration in second for loop

  • @bhavanshipatel2091
    @bhavanshipatel2091 2 ปีที่แล้ว

    you're the first person ever to say IF YOU DONT LIKE IT HIT THE DISLIKE BUTTTTON BRUHHHH

  • @karandeepsingh1058
    @karandeepsingh1058 ปีที่แล้ว +1

    Nice

  • @अभयदीप-ज1ग
    @अभयदीप-ज1ग 5 วันที่ผ่านมา +1

    गुरू भगवान माता पिता जी सदा जय

  • @ankushshah5422
    @ankushshah5422 2 ปีที่แล้ว

    U have not specified string data type how to know if it store string value?

    • @vikashsharma8109
      @vikashsharma8109 2 ปีที่แล้ว

      by default it is a string in python programs

  • @snigsss
    @snigsss 3 ปีที่แล้ว +3

    MY!👏MIND!👏IS!👏BLOWN!👏
    I do it in a much lengthier way...this is shorter than looping also omg
    How come I never thought of this..JUST WHYY
    damn bro damn

  • @flynneugene2675
    @flynneugene2675 ปีที่แล้ว

    its not working dude , i typed the same thing but it does not work

  • @taqi.elizadekh1071
    @taqi.elizadekh1071 3 ปีที่แล้ว +3

    Perfect)👌👌👌❤

  • @adityagupta7731
    @adityagupta7731 3 ปีที่แล้ว +2

    Good video

  • @trynabeaperfectperson4873
    @trynabeaperfectperson4873 ปีที่แล้ว +1

    Easiest method exists 😉😅

  • @chintadineshkumar1470
    @chintadineshkumar1470 2 ปีที่แล้ว

    but when the first letter is capital in Madam if we reverse it will be false how to equal capital M with small m

  • @vinaysaunshi8102
    @vinaysaunshi8102 2 ปีที่แล้ว

    Why two colons in slicing of string

  • @berrylace5629
    @berrylace5629 ปีที่แล้ว +1

    AMAZINGGG

  • @youngmahesh6885
    @youngmahesh6885 2 ปีที่แล้ว

    I/p: Madam
    And
    O/p: palindrome
    How to write a program explain me bro

  • @siddharthvashist1409
    @siddharthvashist1409 ปีที่แล้ว +1

    yum !

  • @SHEEREENNISMA
    @SHEEREENNISMA 3 ปีที่แล้ว +1

    Thank you for sharing...

  • @GamingZone-ol3qu
    @GamingZone-ol3qu 4 ปีที่แล้ว +1

    Badiya

  • @Ilham-bm2ss
    @Ilham-bm2ss หลายเดือนก่อน

    M = yam

  • @guitC
    @guitC ปีที่แล้ว

    yoi can do it with the loop

  • @joshikaran-zm2ju
    @joshikaran-zm2ju ปีที่แล้ว

    think simple , simplicity is the key :0

  • @47_i_yashawasthi29
    @47_i_yashawasthi29 ปีที่แล้ว +1

    Tomorrow is my exam 😫

  • @mariananunes6131
    @mariananunes6131 3 ปีที่แล้ว +1

    I LOVE YOU

  • @codewithdoge
    @codewithdoge 3 ปีที่แล้ว

    Don't get offended but is em num yum

  • @CaptainBenjamins
    @CaptainBenjamins ปีที่แล้ว

    A palindrome, not palindrome

  • @tarlan5966
    @tarlan5966 3 ปีที่แล้ว

    very short and usefull

  • @joshibrothers5499
    @joshibrothers5499 2 ปีที่แล้ว +1

    Nice

  • @tarlan5966
    @tarlan5966 3 ปีที่แล้ว

    very short and usefull