Python Pattern Programs - Printing Numbers in Right Triangle Shape

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2017
  • In this Python Pattern Printing Programs video tutorial you will learn 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

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

  • @yashbanait...7277
    @yashbanait...7277 ปีที่แล้ว +4

    I have been using Python 2 for a long time and I didn't know that print is a statement in Python 2...
    Thank god I came across the video..🙏🙏
    Thank you so much...❤️

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

    I love the tutorial, thank you!

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

    Your voice is so different specially at python word.

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

    Best teacher for python programming

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

    Very good explanation it is easy to understand after your explanation. Now I know how to print the patterns Iam a beginners but I understand the logic to print the patterns thank you madam

  • @francismannion7075
    @francismannion7075 6 ปีที่แล้ว +12

    Thank you for an interesting and fun program.

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

    n=int(input("please input"))
    list=[ ]
    word=" "
    for i in range(1,n+1):
    list.append(str(i))
    x=word.join(list)
    print(x)
    for j in range(1,n+1):
    list1=[ ]
    word1=" "
    while len(list1) != j:
    list1.append(str(j))
    y = word1.join(list1)
    print(y)
    I am a beginner myself. Your video helped alot. Hope my piece homework is not too embarrasing. haha

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

    Best explanation ever...

  • @WasimAkram-vq5if
    @WasimAkram-vq5if 4 ปีที่แล้ว

    Good explanation ...very usefull for new learner....

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

    To my consciousness,this is the best explanation for beginners.!

  • @RajendraPrasad-wm2dp
    @RajendraPrasad-wm2dp 5 ปีที่แล้ว +3

    Hi Madam,
    nice teaching
    i am understanding properly
    when will use this type of pattern program

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

    Best explanation never before never after

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

      Thank you :)

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

      The thing u just said ,its a floccinoccinihilipilification.......

  • @sreekumark8877
    @sreekumark8877 6 ปีที่แล้ว +8

    Please make more python programming examples videos. Great way of teaching

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

      Thank you:)
      Will do :)

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

      first year CSE ?

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

    Thank you friend, this was so god damn helpful!

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

    thank u for teaching about python

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

    it was helpful to me thank you!!

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

    Thanks Mam. Excellent and cool explanation. Always confused about the patterns,this video has made me clear. Keep posting.

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

      Thank you :)

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

      I want talk to you about program related please give me your email id or any contact

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

    Thanks a lot.Take love from Bangladesh.

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

    Thank you madam thankq so much your way of explanation is superb

  • @PremKumar-yt8jy
    @PremKumar-yt8jy 2 ปีที่แล้ว +1

    Nobody did not teach like you in the youtube,madam super🙏

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

    thankyou so much
    great help

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

    your voice is awesome....ti gives me extraordinary inspiration to learn python programming and I love it💙

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

    very good explanation

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

    What my sir is not be able to do is done by you
    Thanks a lot
    This is a student just one day before final exam........

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

    Very good explanation.. much easier to follow.. thanks a lot.

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

    I love your "tri tri tri"❣️🙂 and i love the video too

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

    her accent of saying those numbers at 6:58 was so satisfying lol

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

    Thank you very much.

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

    nice explanation

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

    very good
    thanks

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

    It is very much helpful thank you so much

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

    Please do upload more videos of pyramid and programmes logical

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

    Thank u🙌🏻♥️

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

    Mam can you pls tell how to do this programme using while within while

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

    Thank You very much !!!

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

    Dear Amul's,
    Can you pls make a video on permutations concept. seems to be not done yet.

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

    good explanation

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

    very nice! thank you very much

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

    Well explained..thank you

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

    Thank you so muchh

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

    very good way of explaining dear...Thanks

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

      Thank you:)

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

      Really the method of explaining is so much of absorbing all things going with the flow.....:) Can you please upload few more videos on building patterns of numbers like forming a square or pyramid by taking input of range of two numbers from a user and then printing the numbers within that range???!!!

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

      Thank you:)
      Soon i will upload more videos on patterns:)

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

    Thank you very much Amul, you helped me a lot! 🙂🙏

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

    My xam starts on dec 4. Please make as soon as possible. I can get you more subscribers

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

      Particularly which topics you want? so that we can cover that first:)

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

    Ma'am,thank u so much!❤❤❤

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

    Thank you so much👍👍

  • @sadstatus-vf7oe
    @sadstatus-vf7oe 3 ปีที่แล้ว +2

    Nice explanation mam thank you so much

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

    Thank you🥰

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

    Voice n teaching 😊😊

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

    which software you are using for coding please guide

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

    Smarta$$! thanks

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

    rng= int(input(" enter the range : "))
    for j in range(1,rng+1):
    print(str(j)*j)

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

      nice one.

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

      how to write 1111 then 2222 then 3333 .....etc

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

    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!! :(

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

      Try this:
      list1 = [1,2,"amul","x",4]
      list2 = [i for i in list1 if str(i).isdigit()]
      list3 = [i for i in list1 if str(i).isalpha()]
      print(list2)
      print(list3)
      :)

    • @yashbanait...7277
      @yashbanait...7277 ปีที่แล้ว +1

      What is the Syntex for the program to run ?

  • @a.m.adithyan987
    @a.m.adithyan987 4 ปีที่แล้ว

    i want this done by while loop method will u

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

    U are literally 👍🏻 super....

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

    Gud explanation I really inspired

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

    Ma'am will you upload a video on some important patterns (star and number) for class 10 as per CBSE guidelines

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

    Great

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

    how can i build the list of pyramid with different numbers

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

    Thanks for you

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

    thanku

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

    Very best class

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

    You are fabulous 🔥🔥🔥🔥

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

    I didn^t understand second part. 7.13 .We said for x in i but we didn^t use x. When ı delete that line input is beinf 12345. what is the real reason we need this line? Could somone help?

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

    Thank you

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

    hi ;
    u have mentioned first row as 1 plz just clear my ambiguity was it not be mentioned like index zero as u have written range(1,i+1)
    Why it is not like (0,i+1).
    and if we write zero what whould be the consequences.

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

      When you are printing number pattern, i want to print number from 1 right.
      1
      12
      123
      1234
      here first we want print number 1, that's why i took range from 1.
      you can take 0, then it will start the pattern from 0
      if you take range(0,i+1)
      then it will print,
      0
      01
      012
      0123
      like this .
      If you want take range from 0 and if you want to print number from 1 then you can write program like this:
      for i in range(0,5):
      for j in range(0,i+1):
      print(j+1,end="")
      print()
      :)

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

    please add video on interview perception,which help to crack interview pls pls

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

    How do you do this with one print statement

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

    if there should not be any space after the each element of the last column and no new line after the last row.what should i do?

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

      you can put print() and space first.
      for i in range(5):
      print()
      for j in range(i+1):
      print(" ",i,end="")
      :)
      But why?

    • @satishs.h6917
      @satishs.h6917 5 ปีที่แล้ว

      I didn't understand Ma'am

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

    Can you please make videos on interview questions and more videos on C programs

  • @JYOTIGUPTA-xh8eg
    @JYOTIGUPTA-xh8eg 4 ปีที่แล้ว +1

    Ty

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

    it is giving error as invalid syntax...when i had copied the whole program u wrote on your interactive mode...the equals to sign in end="" is giving the error i dont know why...

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

      I think you are using python 2 version.
      This program will run in python 3 version.
      for python 2:
      n = input("number of rows:")
      for i in range(1,n+1):
      for j in range(1,i+1):
      print i,
      print
      :)

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

      Ur voice is very smooth,
      I like it 😍😍😍😍

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

    Thanks 😌

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

    Thanks a lot mam! :)

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

    Does anyone know which editor is she using ?

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

    Ma'am , please clarify my doubt.. Which version of python you're using? Python 2 or 3???🥺

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

    Can you write this logic in just one line without using strings?

  • @Siddharth-bk8tp
    @Siddharth-bk8tp 4 ปีที่แล้ว +1

    First Wale ka kya hum log will Loop se nhi baana sakte hai

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

    Write a Python program that takes an integer input as height from the user
    and then print the pattern. what will be the answer of this?

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

    plzzz..Explain it by using nested while loop...please maam

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

    Tysm mam

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

    Super it help me lot

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

    Can we perform it by while loop?..

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

    Write a program that accept any positive integer number from keyboard and check whether the number is Prime or Composite (Using While-Loop) please solve
    this task

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

    how to print double right angled triangle using python for loop
    *
    * *
    * * *
    * * * *
    *
    * *
    * * *
    * * * *

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

    how much expertise should I have in python to get a job in Bangalore?pls, say in details with complete details for a data analyst job.

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

    Hi !
    Can you do a vedio to print an pattern of right angle triangle with numbers
    With only one 'print' statement

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

    Thanks a lot

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

    Hi. Very useful. However, the i and j numbers are the index numbers of rows and columns right? I could not grasp j starting from 1 in the video for floyd's triangle. Then I realised j starts from 1 means it starts from col no.1 and goes till col no. (i) .am I right?
    In this video some people might get confused I think between index number and actual content inside, since both start from 1 in each row. I saw another similar video from your channel only..that was when I understood the funda of index numbers. Thanks :)

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

      sorry to be offtopic but does anyone know of a way to get back into an instagram account??
      I was stupid lost my login password. I appreciate any tricks you can give me.

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

      @Leonidas Levi Instablaster :)

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

      @Ulises Vihaan I really appreciate your reply. I got to the site through google and I'm in the hacking process atm.
      I see it takes quite some time so I will get back to you later when my account password hopefully is recovered.

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

      @Ulises Vihaan DAMN IT ACTUALLY WORKED :O Literally got access to my ig password within ~ 45 mins by using the site.
      I had to pay 15$ but definitely worth the price :O
      Thanks so much, you saved my ass !

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

      @Leonidas Levi glad I could help :)

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

    hello! so I did the exact pattern you taught in the video-
    n = int(input("Enter the number of rows"))
    for i in range (1,n+1):
    for j in range (1,i+1):
    print(j, end="")
    print ()
    however, when ran module, it doesnt give me the simple pyramid pattern; it gives me this instead-
    1
    1
    2
    1
    2
    3
    1
    2
    3
    4
    1
    2
    3
    4
    5
    do you know how I can fix this? thank you!

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

      hey so i think mine works copy paste it and try it basically its just the position that you placed the print function in the last line
      n = int(input("Enter the number of rows"))
      for i in range (1,n+1):
      for j in range (1,i+1):
      print(j, end=" ")
      print ()

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

    Very nice

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

    Hello mam apka explaination way to osm h hi
    Apki voice kitni pyari hai
    😅Bahot jyada hi cute lgti h apki avaj

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

      Thank you :)

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

      @@AmulsAcademy mam 😄plz facecam kriye naa ye bs meri ni aur v Learner's ki mang hai

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

    programme for the second arrangement by using only one print() function

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

    tbh ur voice is so sweet :) ....some times i watch more videos only to listen to ur voice :)...um may i knw ur name?

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

      Thank you so much:)
      My name is Amulya.

    • @sameerchitrasedu5628
      @sameerchitrasedu5628 6 ปีที่แล้ว

      Amuls Academy oh cool name :) looking for more good stuff from u learning more from ur channel than from my clg lol

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

      But don't make spit sounds please. Have water b4 making videos.
      Thank you.

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

    I'm unable to understand 'Nested loops' and how the Outer and Inner loops execute. Can you make a video on it or suggest any website or article which explains this in detail.

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

      I will try :)

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

      @@AmulsAcademy Please do would be really helpful and thank you for your content.

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

    Whatever you will think about me..i don't care but i just want to one thing "mujhe aapki awaaz se pyaar ho gyaa hai"🙊

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

    hello amulya, i have watched your star paterne video that's amazing but i have face a minor error in diamond paterne, you will first enter the number of rows by user suppose that entered number is 5 but in the paterne number of row is 9 that,s wrong if we will enter 5 that means the required rows is 5, please correct it........

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

      Thank you, i will check that :)

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

    Please make a video on sum of digits

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

      Sure will make it soon:)

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

    mam plz can u provide the code using while loop..i am getting the first one but in reverse order and i cant find anywhere else using while loop.

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

      Actually both pattern are same, for second pattern you need to print i value .
      You can try by yourself.
      If you need any guidance ask be back :)

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

      @@AmulsAcademy no no mam..actually i was trying the pattern using while loop....but getting something weird...thats y i was asking for help using while loop

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

    ya thanks

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

    I am trying to do the program on printing stars and numbers in diamond shape but able to get it.pl suggest something