Python Pattern Programs - Printing Numbers in Right Triangle Shape

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 133

  • @vehehgito
    @vehehgito 5 років тому +16

    Thank you! You're a blessing for me as I'm watching this a day before my exam. :D

  • @balakrishnavaidyanathan8572
    @balakrishnavaidyanathan8572 4 роки тому +2

    When i started learning python I started from amulya's academy.its great learning.thax for that.

  • @SaumyaF16
    @SaumyaF16 3 роки тому +1

    Thank you ma'am!! Finally After the whole session I understood this program through your video....💓

  • @sabarishravishankar9158
    @sabarishravishankar9158 5 років тому +7

    n=5
    for i in range(n):
    for j in range(1,n+1-i):
    print(j,end="")
    print()

  • @amandeepsinghandheri9857
    @amandeepsinghandheri9857 5 років тому +2

    Hi. You are doing amazing. I am new to Python and learning. In your next videos, can you please just debug and try to explain the iteration? That will probably allow newbies like us to understand better :)

  • @pymondo1147
    @pymondo1147 6 років тому +5

    Just admired by your sweet voice. thank you for the tutorial :)

  • @ramvithanala7674
    @ramvithanala7674 6 років тому +3

    Your videos are very helpful to develop the logics

  • @subashinibala1454
    @subashinibala1454 5 років тому +2

    thank you so much for uploading these video its very very useful for exams and quick learning
    pl dont stop doing this python programming

  • @surindermalhotra9892
    @surindermalhotra9892 5 років тому +2

    thank you so much for uploading this video , only your video is interesting in this boring subject

  • @amantiwari8620
    @amantiwari8620 6 років тому +3

    This video is very useful for my exam

  • @thelearningasylum6924
    @thelearningasylum6924 3 роки тому +1

    dear teacher thank you so much for teaching

  • @amirdharajanm9605
    @amirdharajanm9605 5 років тому +1

    Very cute and clear voice. and easy to understand.. thank you mam

  • @krishnaparida007
    @krishnaparida007 6 років тому +2

    i will surely gonna share this video to all my frnds

  • @shubh_pokharkar8145
    @shubh_pokharkar8145 Рік тому

    can be used for first pattern
    for i in range(1,6):
    for j in range(1,7-i):
    print(j,end="")
    print()

  • @krishnaparida007
    @krishnaparida007 6 років тому +2

    you are doing fav job, and as usual your voice is lovely

  • @AmitShYT
    @AmitShYT 3 роки тому

    I easily understood the logic..it was really informative and easy.. thanks

  • @didieraleisonsuareznivia947
    @didieraleisonsuareznivia947 3 роки тому

    uffff jaaja entendi mejor en ingles, que los otros canales de youtube de español good thanks

  • @babatunde7217
    @babatunde7217 4 роки тому +1

    ur just a blessing thank uuuuu

  • @JOHN-vb5bh
    @JOHN-vb5bh 4 роки тому +4

    Mam is this right n=int(input("enter no."))
    for i in range (1,n+1):
    for j in range(1,n+2-i):
    print(j,end=" ")
    print()

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому

      If you are getting correct output then yes :)

  • @saikrishna3286
    @saikrishna3286 3 роки тому +1

    Please give an example on Consecutive number in 3 rows and colums

  • @basavrajningadali4919
    @basavrajningadali4919 6 місяців тому

    Thank you so much

  • @mohammadaadam6364
    @mohammadaadam6364 11 місяців тому

    wow now i understan pattern

  • @swapnesh19
    @swapnesh19 4 роки тому +1

    Best Video... thank you

  • @anushkashrivastava9565
    @anushkashrivastava9565 4 роки тому +1

    Ma'am such a sweet voice 😍😍😊

  • @irishclaire8578
    @irishclaire8578 3 роки тому +1

    thank you! you're so good. Hands up ^^

  • @tejareddy3343
    @tejareddy3343 6 років тому +1

    Mam meru baga explain chestunnaru ....
    Naku oka help cheyandi mam ...
    10digit mobile number lo last 3 missing ...how to findout that mam plsss help me

    • @AmulsAcademy
      @AmulsAcademy  5 років тому

      Thank you so much :)
      can you explain more about the program?

  • @sakshivishwakarma630
    @sakshivishwakarma630 3 роки тому

    Range (4,0,-1)
    What will be the sequence?

  • @Raj-rj8rz
    @Raj-rj8rz 4 роки тому

    Ma'am what will be the code for this program using while loop?? Please help

  • @yashityashwin3276
    @yashityashwin3276 4 роки тому

    Ma'am can you pls line by line explain the execution of the 2nd program.....pls?

    • @yashityashwin3276
      @yashityashwin3276 4 роки тому

      And also the first program please....its very important for me

  • @giorgibakuradze
    @giorgibakuradze 4 роки тому +1

    how can i build the list of pyramid with different numbers

  • @suprabhatkhotvlogs7437
    @suprabhatkhotvlogs7437 4 роки тому +2

    what if we do not want to space between patterns in python 2.7

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому +1

      You can try this:
      from __future__ import print_function
      print("hi", end='')
      print("hello")
      or you can import sys
      and can use
      sys.stdout.write("hi")
      sys.stdout.write("hello")

    • @suprabhatkhotvlogs7437
      @suprabhatkhotvlogs7437 4 роки тому

      @@AmulsAcademy thank you so much

  • @meghajoshi8927
    @meghajoshi8927 3 роки тому

    How we can write this using while loop

  • @arjyadebsengupta8159
    @arjyadebsengupta8159 4 роки тому

    Thanks I have my exam tomorrow

  • @manikandand2541
    @manikandand2541 4 роки тому +1

    thank u mam

  • @Girdhar_thakur
    @Girdhar_thakur Рік тому

    Thanks mem❤❤❤❤🎉😂🎉

  • @monindersingh2565
    @monindersingh2565 4 роки тому

    Why it don't give o/p with below code ,1)if I specify stop value in col. 2) Why I can not give value of n in for loop itself:
    for row in range (n,0,-1):
    for col in range(1,0,row+1):
    print(col,end=" ")
    print()

  • @harishwarreddy6244
    @harishwarreddy6244 5 років тому

    Please explain logic behind - 1

  • @rajhookay
    @rajhookay 4 роки тому

    I am getting output aas a straight line, not as pattern. ...?

  • @nehagurung1656
    @nehagurung1656 3 роки тому +1

    But why my output is coming in a vertical line not in triangle????

    • @AmulsAcademy
      @AmulsAcademy  3 роки тому

      You need use end parameter in the print function 😊

  • @SaifKhan-sw9zw
    @SaifKhan-sw9zw 5 років тому +1

    For loop me syntax error btaa rha 2 line

  • @bijayph
    @bijayph 5 років тому +1

    Your voice is pretty! - _^

  • @renuagarwal5676
    @renuagarwal5676 6 років тому +1

    Mam i have to print opposite of 1st program please help😕🙏

    • @AmulsAcademy
      @AmulsAcademy  6 років тому +4

      opposite means?
      You need to give me the output:)
      You can try this:
      for i in range(1,6):
      for j in range(1,i+1):
      print(j,end=" ")
      print()
      :)

    • @crewmate3031
      @crewmate3031 3 роки тому

      @@AmulsAcademy mam
      4 3 2 1
      4 3 2
      4 3
      4
      Can u give me answer for this program plzz

  • @ayeshasana975
    @ayeshasana975 6 років тому +1

    How i get pattern???
    ##
    # #
    # #
    # #

    • @AmulsAcademy
      @AmulsAcademy  6 років тому

      for i in range(5):
      print("#"+" "*(i)+"#")
      :)

  • @priyam8699
    @priyam8699 4 роки тому +1

    Mam endl is not working in mobile plz guide me

  • @shwatankbhasin7384
    @shwatankbhasin7384 5 років тому

    Can anyone help through while loop

  • @world4strange
    @world4strange 6 років тому +2

    your voice is so beautiful...

  • @sanchitanath1366
    @sanchitanath1366 4 роки тому +1

    1
    3 2
    6 5 4
    10987
    Ma'am plz do the above pattern in Python

  • @anilmacharla6939
    @anilmacharla6939 3 роки тому +1

    #whats wrong with this code, is it the rightway?
    n=int(input("enter number of rows:"))
    for i in range(1,n):
    for j in range(1,n-i):
    print(j,end=" ")
    print()

    • @AmulsAcademy
      @AmulsAcademy  3 роки тому

      Take range as 1 to n+1 in first for loop 😊

  • @beingultimatelikeapro7402
    @beingultimatelikeapro7402 4 роки тому

    WAP to print the following pattern:
    1
    2 1
    3 2 1
    4 3 2 1
    5 4 3 2 1
    Please make a video on the given question above as fast as possible🙏🙏🙏🙏🙏

    • @parameshappuni8215
      @parameshappuni8215 4 роки тому

      Try this you will get out :)
      a=''
      for i in range(1,6):
      a+=str(i)
      print(a[::-1])

    • @shikharchaurasia8428
      @shikharchaurasia8428 2 роки тому

      for a in range(6,1,-1):
      for b in range(0,a-1):
      print(b+1,end="")
      print()

    • @beingultimatelikeapro7402
      @beingultimatelikeapro7402 2 роки тому

      @@shikharchaurasia8428 @Shikhar Chaurasia Lol bro, you are replying to my 2 years old comment. Now, I can solve much harder questions than this. That time, I was in 11th and I had exams in some days!🙂

  • @esratjahan1834
    @esratjahan1834 6 років тому +1

    2+4+6+......+100=? how to get code for this..

    • @AmulsAcademy
      @AmulsAcademy  6 років тому

      num= 100
      result =0
      for i in range(1,num+1):
      if i%2==0:
      result = result + i
      print(i," + ",end="")
      print(" = ",result)
      Check the final sum, whether it is correct or not ;)

  • @dogsfamily6804
    @dogsfamily6804 3 роки тому +1

    😘😘

  • @simranmathur1694
    @simranmathur1694 5 років тому +1

    Expalin plz in hindi language

    • @AmulsAcademy
      @AmulsAcademy  5 років тому

      I will start Hindi channel soon :)

  • @dawnfrostshadow1872
    @dawnfrostshadow1872 4 роки тому

    Hey mam how would I get the code for this pattern
    TTTTTT
    TTTTT
    TTTT
    TTT
    TT
    T
    Thanks in advanced. it's hard to paste it on here. It's a T 6 T's at the top It ends with one T thanks.

    • @parameshappuni8215
      @parameshappuni8215 4 роки тому

      #try this
      a=''
      b=0
      for i in range(6,0,-1):
      a='t'*i
      print(' '*b,a)
      b+=1
      happy coding:)-

  • @sanchitanath1366
    @sanchitanath1366 4 роки тому +1

    1 2 3 4 5
    6 7 8 9
    101112
    Print the above mentioned pattern in Python plzzzz

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому +3

      n = int(input("rows:"))
      k=1
      for i in range(n,0,-1):
      for j in range(i,0,-1):
      print(format(k,"

  • @solescapeph
    @solescapeph 2 роки тому

    how about this pattern??thanks ♥
    345
    12
    0

  • @srajith4499
    @srajith4499 5 років тому

    if any pro programmer text me i have a simple challenge for u
    good thing is u dont get the answer in google

  • @rakeshshridhar_
    @rakeshshridhar_ 4 роки тому

    maam can you tell cide for
    6 5 4 3 2 1
    5 4 3 2 1
    4 3 2 1
    3 2 1
    2 1
    1

  • @hussainaftab2703
    @hussainaftab2703 4 роки тому

    what is the code for this type series or in descending order????
    4321
    321
    21
    1
    please help me....

    • @chakitbhandari3621
      @chakitbhandari3621 4 роки тому +1

      Hi Hussian
      n = int(input("Enter no of Rows: "))
      for i in range(n,0,-1):
      for j in range(i,0,-1):
      print(j,end=" ")
      print()
      The above code will be general for the number of rows entered by the user.
      Hope you got it.

    • @hussainaftab2703
      @hussainaftab2703 4 роки тому

      @@chakitbhandari3621 thank you very much

    • @chakitbhandari3621
      @chakitbhandari3621 4 роки тому

      Welcome@@hussainaftab2703

    • @hussainaftab2703
      @hussainaftab2703 4 роки тому

      @@chakitbhandari3621 do you help me for my assignments please

    • @hussainaftab2703
      @hussainaftab2703 4 роки тому

      @@chakitbhandari3621 how can i contact with you??