Python Tutorials - Palindrome Program | Reverse The String And Number | Advanced Slicing

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 270

  • @shashankshekhar1208
    @shashankshekhar1208 4 года назад +18

    Maam you helped me a lot in learning these. i love your voice because this is the voice who really teached me python. thank you

  • @vishal_sharma_2006
    @vishal_sharma_2006 3 года назад +2

    Don't know why but u are only teacher who teaches python so well even better than telusko

  • @sarojranjansingh3728
    @sarojranjansingh3728 5 лет назад +7

    This is the best channel for learning Python... There is not a single video in youtube that can compete your videos mam. Thanks for your teaching and explanation Mam.

  • @sheenabal7022
    @sheenabal7022 4 года назад +2

    The use of slicing for palindrome program was fabulous idea

  • @bollemhemanth3630
    @bollemhemanth3630 3 года назад +1

    Ur godgifted to us mam to listen such magical voice in teaching

  • @jeelezindagi7664
    @jeelezindagi7664 3 года назад +1

    Best explanation ever...👍🏻👍🏻👍🏻

  • @NeelamSingh-sr9ri
    @NeelamSingh-sr9ri 3 года назад +2

    Mam Today only I have seen the first program on your channel.And I become a great fan of your teaching and so easily and nicely you have explained the whole program,Thank you so much.

  • @Narendrakumar-kn8ns
    @Narendrakumar-kn8ns 5 лет назад +4

    Really thnx mam for upload all programs,....... I have watched many videos...... And really the logic of all patterns programs are very easy n understandable...... 🙏

  • @VivekKumar-rm4td
    @VivekKumar-rm4td 6 лет назад +3

    Really no one teach like you mam
    Love you ur way of explaining...

  • @computerworld630
    @computerworld630 2 года назад

    Nice ...such a great Example

  • @pioneeringtech1592
    @pioneeringtech1592 4 года назад +6

    That was a really great explaination !! Keep up the good work

  • @RanjanSingh-sv6ri
    @RanjanSingh-sv6ri 2 года назад

    u hv good teaching skills

  • @nilimathorat4540
    @nilimathorat4540 2 года назад

    Your all videos are very Very good.Explaination is nice so easy to understand.

  • @madhusudhanakesavagani2301
    @madhusudhanakesavagani2301 4 года назад +1

    Super explaination , thank you

  • @sharmishthadubey3344
    @sharmishthadubey3344 3 года назад

    Thankyou thankyou so much...On Google this program is very tough but u make it so easy ♥️

  • @bharathmanikumar5528
    @bharathmanikumar5528 3 года назад

    Great explanation and nice voice! 😉

  • @edaanhsirk
    @edaanhsirk 2 года назад

    thank madam it helps a lot....

  • @AngelaSMak
    @AngelaSMak 5 лет назад +3

    That is very nice tutorial, how can you write a program with only one statement long to print the number of palindrome?
    thanks

  • @HarshitaChattopadhyay
    @HarshitaChattopadhyay 5 лет назад +2

    Super... Ur videos r awesome 👏 👏 👏

  • @learnit1139
    @learnit1139 4 года назад +1

    yes it was very usefull and was easily explained

  • @exercicedemathspourtous9882
    @exercicedemathspourtous9882 4 года назад +1

    Thanks you , very good video.

  • @denver3174
    @denver3174 4 года назад +9

    After 2 years still this vedio very helpful😁

  • @josephjoestar4267
    @josephjoestar4267 4 года назад +1

    Honest and efficient way read it and weep:
    var = raw_input("Input something and I'll determine whether or not it's a palindrome or not: ")
    new2= list(var)
    p = 0
    for i in range(0,len(new2)-1):
    if(new2[i] != new2[len(new2)-i-1]):
    print("not a palindrome")
    p = p+2
    if p == 0:
    print("palindrome")

    • @schogaia
      @schogaia 4 года назад

      It is not that efficient because it compares each character pair twice. It would be enough to stop after half of the string

  • @gauravraja1090
    @gauravraja1090 4 года назад

    Your voice is so sweet and clear which make kind attention to understand program and also way of teaching very easy.

  • @asishraz6173
    @asishraz6173 5 лет назад +4

    very helpful. And the way you illustrated was very easy. Thank you so much for this video.

  • @anuradhakumari6123
    @anuradhakumari6123 5 лет назад +3

    Thanks. Loved ur voice nd explanation. Keep doing good work

  • @satyakashmishra4903
    @satyakashmishra4903 4 года назад +6

    Before commenting I think you are a child.
    Your voice is lovely 😍

  • @bhargavkrishna2815
    @bhargavkrishna2815 4 года назад +1

    Thank you very much easy to understanding 🙏

  • @ebtesaml479
    @ebtesaml479 4 года назад +1

    To be honest you are awesome 💕💕💕
    THANK YOU ! 💕

  • @petranianqitang9217
    @petranianqitang9217 3 года назад +1

    Thank you for teaching me! I have learnt heaps from your channel.

  • @manoraju3461
    @manoraju3461 5 лет назад +1

    very nice video and easy to understand. step by step explanation was really good.

  • @haniaabbas2599
    @haniaabbas2599 4 года назад +1

    life saver!!! thank you so much

  • @nandinisingh2485
    @nandinisingh2485 4 года назад +2

    The best and the easiest method 🥰🥰🥰
    Thank u so much😃😃 u hv helped me a lot😭😭😭😭

  • @neerajarora4920
    @neerajarora4920 5 лет назад +1

    Thanks a lot !!!!!
    Very easy to understand

  • @jewishboi3384
    @jewishboi3384 4 года назад +1

    Amazing thank you!

  • @paone7694
    @paone7694 2 года назад

    yes, it was good. but what if user use spaces like ( madam) or capital letters at starting of sentence.?

  • @souravkr3305
    @souravkr3305 4 года назад +3

    You have helped me a lot..
    Thanks 💖..
    Please keep making these videos.,✨✨

  • @madhusudhanakesavagani2301
    @madhusudhanakesavagani2301 4 года назад +1

    Doing good job ,keep support for learners🙏

  • @greeshmashetty1724
    @greeshmashetty1724 4 года назад +3

    Thank you very much for sharing your knowledge. Very helpful 🙏

  • @jayanthperneti9213
    @jayanthperneti9213 3 года назад +1

    ma'am actually its not required for prompting the number specially and then converting it to string. you can simply just prompt wether it is number or string, isn't it?

    • @AmulsAcademy
      @AmulsAcademy  3 года назад

      Yes you can take string input :)

  • @khyati8520
    @khyati8520 5 лет назад +2

    Thank you dear..

  • @mohanakumar5706
    @mohanakumar5706 6 лет назад +2

    Very nice explanation Mam.

  • @rpmmotovlogs2043
    @rpmmotovlogs2043 4 года назад +1

    your voice is sooooooooooooooooo clear and also cute...........

  • @venkatlalam3048
    @venkatlalam3048 Год назад

    Please solve this question mam
    S=praveen kumar using for loop i want output like this neevarp ramuk dont use list only string form

  • @harijagadeeshiyer6698
    @harijagadeeshiyer6698 4 года назад

    how to print the missing string(alphabet or number) when the input is not a palindrome for example if the input is MALAYAAM then my output must be L because L is missing when we reverse the string PLZ help

  • @harijagadeeshiyer6698
    @harijagadeeshiyer6698 4 года назад

    if not a palindrome how to print the missing string ,plz help mam

  • @Amitsirtutoronlinetuition
    @Amitsirtutoronlinetuition 5 лет назад +1

    Good explanation

  • @satyakashmishra4903
    @satyakashmishra4903 4 года назад +1

    I love your explanation ❤️❤️😶❤️😍❤️❤️
    Pls also make a video to capitalize first letter of the input from .upper function not .capitalize function

  • @shivamjuyal3016
    @shivamjuyal3016 4 года назад

    i could listen to you tallk all day XD

  • @karthickr4851
    @karthickr4851 5 лет назад +1

    It's easy to learn for beginners.. Thanks a lot :)

  • @bishnupriyarout3730
    @bishnupriyarout3730 4 года назад +2

    I am running this program in anaconda Jupiter. Its showing error in str(num)
    ?????

    • @AmulsAcademy
      @AmulsAcademy  4 года назад

      Give me the complete program, i will check.
      :)

  • @meherunisashaik2958
    @meherunisashaik2958 4 года назад

    how to check whether the string is palindrome or not without using any loop in python can you explain this pls??

  • @athisii_ekhe6167
    @athisii_ekhe6167 6 лет назад +1

    good job! I love it

  • @Duffer_the_Hari
    @Duffer_the_Hari 3 года назад +1

    Thank you very much

  • @patsondamascus885
    @patsondamascus885 4 года назад

    great explanation brother subscribed

  • @amithaldar87
    @amithaldar87 4 года назад +1

    Thank you. How do we ignore the letter case. For example a string is palindrome but comprises both capital and small letter.

    • @AmulsAcademy
      @AmulsAcademy  4 года назад

      After taking the input change the case of input then you can check that is palindrome or not :)

  • @neerajsharma2286
    @neerajsharma2286 5 лет назад +24

    I like the way you pronounce m as yum...😂😂

  • @systemDesignInfo
    @systemDesignInfo 5 лет назад +4

    Mam aap bhaut aacha padhate ho plzz sarri video dallo

  • @ashajamwal9566
    @ashajamwal9566 5 лет назад +1

    how to write program for searching a file for palindromes? I want program to scan every single word in this file and if it is palindrome word then print it else check next word and loop will work till last word of file? Can anyone help me in this?

    • @totaloverdose3505
      @totaloverdose3505 5 лет назад

      Use for loop and use conditional statements in it's suite.

  • @matteostrife4572
    @matteostrife4572 4 года назад +1

    Good work, i wuold add "string = string.lower()" after you collect the input otherwise something like anNa would not be seen as a palindrome

    • @swifty040
      @swifty040 4 года назад

      Thank you, you helped me sir!

    • @AmulsAcademy
      @AmulsAcademy  4 года назад

      Yes we can do that :)

  • @naveenadhikari5953
    @naveenadhikari5953 6 лет назад +2

    Ahh thxx very much 🙂🙂🙂🙂

  • @RahulRajput_018
    @RahulRajput_018 4 года назад +1

    What to to do for case insensitive pallindrome check

    • @AmulsAcademy
      @AmulsAcademy  4 года назад

      You can change the case of the string first then you can proceed :)

  • @Raja-tt4ll
    @Raja-tt4ll 5 лет назад +1

    Very Nice Video

  • @PrannavPrannu
    @PrannavPrannu 7 месяцев назад

    Hi mam, I really impressed the way u taught , and it is been very useful, thank you so much mam, I love you 💞😘❤

  • @ritiknegi6176
    @ritiknegi6176 5 лет назад +1

    Thanks a lot for your help

  • @Selvi574
    @Selvi574 5 лет назад +1

    Can u teach this using looping conditions

    • @AmulsAcademy
      @AmulsAcademy  5 лет назад

      number = int(input("Please Enter any Number: "))
      reverse = 0
      temp = number
      while(temp > 0):
      Reminder = temp % 10
      reverse = (reverse * 10) + Reminder
      temp = temp //10
      print("Reverse of a Given number is = %d" %reverse)
      if(number == reverse):
      print("%d is a Palindrome Number" %number)
      else:
      print("%d is not a Palindrome Number" %number)
      video link:
      for reversing string using loops:
      ruclips.net/video/4JqHDpmF5Yc/видео.html
      :)

  • @ashu60071
    @ashu60071 5 лет назад

    Please make a tutorial on array rotation, array manipulation

  • @deepakkumarbehera7493
    @deepakkumarbehera7493 5 лет назад +4

    Thank you ma'am......from long time I was confused in palindrome but now it cleared thanks again ma'am 😀😀😀

  • @clydecessna737
    @clydecessna737 4 года назад +1

    Thank you.

  • @channusingh6993
    @channusingh6993 4 года назад +1

    How to do the same problem using functions

    • @AmulsAcademy
      @AmulsAcademy  4 года назад

      Put the code {except the input part }in a function.
      After taking input call that function to check input is palindrome or not :)

    • @channusingh6993
      @channusingh6993 4 года назад

      Can you give an example plz

  • @OrvixStudios
    @OrvixStudios 5 лет назад +1

    How to find the palindromic prime or not for the given number plz reply

    • @nishithareddy6169
      @nishithareddy6169 5 лет назад

      Write the conditions for both the palindrome and prime

    • @OrvixStudios
      @OrvixStudios 5 лет назад

      @@nishithareddy6169 it will not work for number 101 this number is palindromic prime by it shows not a palindromic prime

  • @chaitanyathummala5421
    @chaitanyathummala5421 6 лет назад +1

    Excellent bro

  • @abhishekjaiswal6489
    @abhishekjaiswal6489 5 лет назад +1

    very nice video

  • @chaitanyathummala5421
    @chaitanyathummala5421 6 лет назад +1

    Your are a genius

  • @gauravkhampariya6081
    @gauravkhampariya6081 4 года назад +1

    mam please make a series on python programs asked in interview

  • @kantamsettipavan5028
    @kantamsettipavan5028 5 лет назад +1

    Can you upload a program to print palindrome dates in a given year?

  • @DrBond003
    @DrBond003 5 лет назад +2

    M- "yum"
    L- "Yul"
    Well that sounds nice 😁😁

  • @narayanaswamy614
    @narayanaswamy614 6 лет назад +1

    thank you so much for the videos mam

  • @veeraregalla2460
    @veeraregalla2460 4 года назад +1

    It's getting wrong output in python 3.6.5..i don't know y

    • @AmulsAcademy
      @AmulsAcademy  4 года назад

      Give me the program i will check :)

  • @serhiiilliushko6328
    @serhiiilliushko6328 4 года назад

    cute accent and awesome explanation, thanks

  • @hariharanm2906
    @hariharanm2906 6 лет назад +1

    madam nice video whether there is any other possiblity to write this program in a shorter manner

    • @AmulsAcademy
      @AmulsAcademy  6 лет назад +4

      string = input("enter string")
      new_str = string[::-1]
      if string == new_str:
      print("palindrome")
      else:
      print("not a palindrome")
      :)

  • @samarthkumar449
    @samarthkumar449 6 лет назад +1

    can you please give the code for floyd's triangle, your video about it had errors and the format thing that you suggested had a wrong output too.

    • @AmulsAcademy
      @AmulsAcademy  6 лет назад +1

      What is the error?
      can you give me the program and output.
      I will check:)

    • @samarthkumar449
      @samarthkumar449 6 лет назад +1

      def floyd():
      n=int(input("Enter the number of rows:"))
      num=1
      for row in range(1,n+1):
      for col in range(1,row+1):
      print(format(n,"

    • @AmulsAcademy
      @AmulsAcademy  6 лет назад +1

      You need print num value.
      def floyd():
      n=int(input("Enter the number of rows:"))
      num=1
      for row in range(1,n+1):
      for col in range(1,row+1):
      print(format(num,"

    • @samarthkumar449
      @samarthkumar449 6 лет назад +1

      @@AmulsAcademy thank you

    • @AmulsAcademy
      @AmulsAcademy  6 лет назад

      welcome:)

  • @mayankmayank5820
    @mayankmayank5820 4 года назад +2

    rev_string=string[ : : -1], this will give indent error,what to do mam

    • @AmulsAcademy
      @AmulsAcademy  4 года назад +1

      You placed extra space somewhere before the sentence in the program :)

  • @Flowereacer89
    @Flowereacer89 3 года назад +1

    Subscribed !!

  • @yashrajofficial49
    @yashrajofficial49 4 года назад +3

    Thank you so much Mam, you are explaining in very simple and easily. 🙏💕

  • @abgrafix
    @abgrafix 5 лет назад

    Thank u soo much
    .... Sumita arora has a longer nd complex apperoach for same program

  • @hariharanm2906
    @hariharanm2906 6 лет назад +1

    Thank you very much mam

  • @viswanadhapallapothu2342
    @viswanadhapallapothu2342 4 года назад +1

    Hi mam I'm Viswanath. Can you make a video for interview questions from py

  • @syedsabeer1027
    @syedsabeer1027 5 лет назад

    can u show reverse of sub string

  • @HasanMahmud-cf8km
    @HasanMahmud-cf8km 5 лет назад +1

    Wow your voice is so lovely 😍👌👌

  • @priyak3198
    @priyak3198 6 лет назад +1

    very helpful

  • @mansi4714
    @mansi4714 4 года назад +1

    Thank you so much ma'am...
    But how to write the same program using only for loop ma'am???

    • @AmulsAcademy
      @AmulsAcademy  4 года назад +1

      Try this:
      str1 = input("string:")
      str2=""
      n = len(str1)
      for i in range(n-1,-1,-1):
      str2 = str2+str1[i]
      print(str2)

    • @mansi4714
      @mansi4714 4 года назад

      @@AmulsAcademy ...thanks a lotttttt ma'am.... I got it.... 🙏🙏🙏🙏🙏

  • @soumyadipdan5880
    @soumyadipdan5880 3 года назад +1

    Wow this method is easy...👍 I studied earlier the difficult method and was very lengthy 😭

  • @atheenaantony7178
    @atheenaantony7178 5 лет назад

    Good tutorial

  • @KishoreKumar-zh9jf
    @KishoreKumar-zh9jf 6 лет назад +1

    Thanks darling...

  • @komaljaswani7497
    @komaljaswani7497 5 лет назад

    Hi! Can you please make a video on the question: If a list in python has mix of strings & numbers, how will you make separate lists of strings & numbers? I saw ord() for getting ASCII code in python & chr() for converting ASCII codes to characters somewhere & tried to use them to get answer of this question but it did not work!! :(

  • @senthamizhselvantamizh
    @senthamizhselvantamizh 2 года назад

    We can also do this with out str() method:
    def reversenum(num):
    ans = 0
    leng = len(str(num))
    for i in range(leng):
    a = num % 10
    ans = ans + (a * (10 ** (leng - i - 1)))
    num = num // 10
    return ans
    a=11228142211
    print(reversenum(a))

  • @parthrajput7693
    @parthrajput7693 4 года назад +1

    Ma'am can u PLZZ start teaching online from the basic as my basic is not so strong plz ma'am .
    Ma'am also pls tell from where we can learn basic

    • @AmulsAcademy
      @AmulsAcademy  4 года назад

      Already uploaded videos on python basics{from start}.
      You can checkout those videos :)

    • @parthrajput7693
      @parthrajput7693 4 года назад

      @@AmulsAcademy ok maam

  • @kkg492
    @kkg492 5 лет назад +1

    Thanks mam

  • @rogerbak1869
    @rogerbak1869 5 лет назад +1

    Hi! Woooow! Unbelievable!!!! I am very impressed by your knowledge and mastery of Python language and also by the way you explain!! I love programming too and Python language. I have begun learning It for about four months and I would like to be on contact with you if possible. Thanks a lot!!!!