Python Pattern Programs - Printing Numbers in Right Triangle Shape

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ธ.ค. 2017
  • In this Python Pattern programming video tutorial you will learn how to print numbers in right triangle shape in detail.
    To print numbers in right triangle shape in python you have to use two for loops. the first loop is responsible for rows and the second for loop is responsible for column.
    For more free tutorials on computer programming
    / amulsacademy
    / amulsacademy

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

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

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

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

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

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

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

  • @pymondo1147
    @pymondo1147 5 ปีที่แล้ว +6

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

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

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

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

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

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

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

  • @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 :)

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

    Your videos are very helpful to develop the logics

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

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

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

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

  • @sabarishravishankar9158
    @sabarishravishankar9158 5 ปีที่แล้ว +7

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

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

    i will surely gonna share this video to all my frnds

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

    This video is very useful for my exam

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

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

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

    ur just a blessing thank uuuuu

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

    dear teacher thank you so much for teaching

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

    Thank you so much

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

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

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

    Best Video... thank you

  • @Raj-rj8rz
    @Raj-rj8rz 4 ปีที่แล้ว

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

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

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

  • @arjyadebsengupta8159
    @arjyadebsengupta8159 4 ปีที่แล้ว

    Thanks I have my exam tomorrow

  • @JOHN-vb5bh
    @JOHN-vb5bh 4 ปีที่แล้ว +3

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

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

    wow now i understan pattern

  • @rajhookay
    @rajhookay 4 ปีที่แล้ว

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

  • @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

  • @SaifKhan-sw9zw
    @SaifKhan-sw9zw 4 ปีที่แล้ว +1

    For loop me syntax error btaa rha 2 line

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

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

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

    How we can write this using while loop

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

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

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

    thank u mam

  • @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

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

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

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว +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 3 ปีที่แล้ว

      @@AmulsAcademy thank you so much

  • @shwatankbhasin7384
    @shwatankbhasin7384 5 ปีที่แล้ว

    Can anyone help through while loop

  • @user-ox9mm1ee8n
    @user-ox9mm1ee8n 11 หลายเดือนก่อน

    Thanks mem❤❤❤❤🎉😂🎉

  • @tejareddy3343
    @tejareddy3343 5 ปีที่แล้ว +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?

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

    how can i build the list of pyramid with different numbers

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

      Give me the pattern please :)

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

      @@AmulsAcademy it's random, numbers no matter

  • @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 😊

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

    Your voice is pretty! - _^

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

      Thank you :)

    • @kausarali9852
      @kausarali9852 4 ปีที่แล้ว

      @@AmulsAcademy i also like her voice

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

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

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว +5

      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

  • @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 😊

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

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

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว

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

  • @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:)-

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

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

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว

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

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

    Mam endl is not working in mobile plz guide me

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

      You need to use end not endl :)

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

      Thankew mam

  • @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 ปีที่แล้ว

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

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

      @@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!🙂

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

    Ma'am such a sweet voice 😍😍😊

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

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

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

    😘😘

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

    your voice is so beautiful...

  • @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

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

    Expalin plz in hindi language

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว

      I will start Hindi channel soon :)

  • @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

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

    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 3 ปีที่แล้ว

      if u find the answer then tell me please

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

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

    • @chakitbhandari3621
      @chakitbhandari3621 3 ปีที่แล้ว +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 3 ปีที่แล้ว

      @@chakitbhandari3621 thank you very much

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

      Welcome@@hussainaftab2703

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

      @@chakitbhandari3621 do you help me for my assignments please

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

      @@chakitbhandari3621 how can i contact with you??