Python Pattern Programs - Printing Numbers in Right Triangle Shape

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • 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

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

  • @absharma534
    @absharma534 3 роки тому +18

    Your voice is so different specially at python word.

  • @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...❤️

  • @ajaykonathala
    @ajaykonathala 5 років тому +14

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

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

      Thank you :)

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

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

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

  • @sreekumark8877
    @sreekumark8877 6 років тому +8

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

  • @PremKumar-yt8jy
    @PremKumar-yt8jy 3 роки тому +1

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

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

  • @francismannion7075
    @francismannion7075 6 років тому +12

    Thank you for an interesting and fun program.

  • @mohdmuzaffarahmed4923
    @mohdmuzaffarahmed4923 5 років тому +18

    Best explanation ever...

  • @RajendraPrasad-wm2dp
    @RajendraPrasad-wm2dp 5 років тому +3

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

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

  • @amritdhillon0
    @amritdhillon0 4 роки тому +7

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

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

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

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

    I love the tutorial, thank you!

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

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

    Best teacher for python programming

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

    Thanks a lot.Take love from Bangladesh.

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

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

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

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

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

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

  • @dalipaero
    @dalipaero 4 роки тому +5

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

  • @avinashkumargond3291
    @avinashkumargond3291 4 роки тому +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  4 роки тому

      Thank you :)

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

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

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

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

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

  • @sadstatus-vf7oe
    @sadstatus-vf7oe 3 роки тому +2

    Nice explanation mam thank you so much

  • @vaibhavsanghai964
    @vaibhavsanghai964 3 роки тому +2

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

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

  • @akshaysingh103
    @akshaysingh103 4 роки тому +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........

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

    very good way of explaining dear...Thanks

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

      Thank you:)

    • @anilpillai3259
      @anilpillai3259 6 років тому +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  6 років тому

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

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

  • @WasimAkram-vq5if
    @WasimAkram-vq5if 4 роки тому

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

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

    how would you do it backwards like instead of:
    1
    12
    123
    you would do:
    1
    21
    321

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

      Similar type of pattern:
      ua-cam.com/video/vOH9_Ryl-hI/v-deo.html

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

      rows = 3
      for row in range(1, rows+1):
      for column in range(row, 0, -1):
      print(column, end=' ')
      print(" ")

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

    It is very much helpful thank you so much

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

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

    Very best class

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

    sister suppose we don't want to print a last line..i mean if n=6 it will display upto 5 what we want to do

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

      You can change the range in for loop for row.
      :)

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

      @@AmulsAcademy thank you...soo much

  • @nikhilgupta6062
    @nikhilgupta6062 4 роки тому +12

    Dont put mic so close to mouth

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

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

    Maam what should v do if v want to print the same program but use alphabet?

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

      You may get ideas after watching this video :)
      ua-cam.com/video/5605NysRJCU/v-deo.html

  • @luk3worm478
    @luk3worm478 5 років тому +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  5 років тому +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 4 роки тому

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

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

    very nice! thank you very much

  • @dipnanda7586
    @dipnanda7586 6 років тому +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  6 років тому +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 6 років тому

      I didn't understand Ma'am

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

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

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

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

    thankyou so much
    great help

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

    Can we perform it by while loop?..

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

    why have you taken range(1,i+1)....why not (1,n+1)? both the values are same...

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

    Gud explanation I really inspired

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

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

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

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

  • @akkyiscool
    @akkyiscool 7 місяців тому

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

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

    Mam I'm following the same procedure but it's not working . All the nos are printed but each digits in a line .
    1
    1
    2
    1
    2
    3
    .
    ........and so on .
    Plz help me mam. I have check the code many times .I'm using python 3.7.3

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

      You didn't use end=" ".
      please check
      :)

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

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

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

    it was helpful to me thank you!!

  • @Siddharth-bk8tp
    @Siddharth-bk8tp 4 роки тому +1

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

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

    Thank you friend, this was so god damn helpful!

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

    Voice n teaching 😊😊

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

    I have one doubt. This program. Ku one video. Post pannga mam.
    N=5
    for i in range (1,N+1):
    for K in range (N,i,-1):
    print (" ",end =' ')
    for j in range(1,i+1):
    print(j,end =' ')
    for 1 in range (i-1,0,-1):
    print (i,end =' ')
    print()
    Neenga intha example la oru video podunga mam sub:Python. (Unit -3) .topic name [printin the pattern ]. Mam this video understand. But i told you this example la oru video post pannga mam.

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

    mam i am following the same procedure but its not working all the numbers are displayed in single line

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

      I think you didn't use end=" ".
      Check that.
      Else give me your program:)

    • @priyanshi..162
      @priyanshi..162 5 років тому

      Please check the position of print ( )

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

    Thank you

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

    for new line instead of prin() can we include print(
    )
    but it is throwing error

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

    very good
    thanks

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

    Thanks 😌

  • @lionthepro6663
    @lionthepro6663 3 роки тому +2

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

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

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

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

    Well explained..thank you

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

    thank u for teaching about python

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

    Very nice

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

    nice explanation

  • @jiyasaraff3235
    @jiyasaraff3235 5 років тому +3

    i am not getting answer in pattern, its displaying in one row

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

      use print() in first for loop......{for loop for row}
      :)

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

      @@AmulsAcademy thax its work

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

    You are fabulous 🔥🔥🔥🔥

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

    very good explanation

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

    mam why we cant use simply range(n) in case of row

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

      Here we want to print numbers starting for 1, that's why i took range() form 1 :)

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

      @@AmulsAcademy thanks mam

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

    You are a fabulous tutor. Can you please pass me the questions for class 11 for examination for CBSE board. Please assist me as computer is my weak subject :)

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

      Thank you so much :)
      Sorry i don't have question papers with me.

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

      Amulya's Academy Any source from where I can access them? One more question, can you please compile all the CBSE programs and provide them on your channel:), or what you’ve uploaded covers the entire content?

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

  • @9Sammu
    @9Sammu 3 роки тому +2

    Nice

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

    Does anyone know which editor is she using ?

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

    Thank You very much !!!

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

    U are literally 👍🏻 super....

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

    which software you are using for coding please guide

  • @foreverpraan4599
    @foreverpraan4599 2 роки тому +1

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

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

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

    count = 1
    for i in range(1,5):
    for j in range(1,i+1):
    count= count + 1
    print()
    .
    .
    .
    Is this correct coding ma'am?

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

    how can i build the list of pyramid with different numbers

  • @shashankgowda8063
    @shashankgowda8063 3 роки тому +2

    @ 0:03 u said "Amul's academy" instead of "Amulya's academy"...just for fun

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

      Yes previously channel name was amuls academy :)

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

      @@AmulsAcademy oh ok Amul mam!🙂

  • @krishnansukumar3279
    @krishnansukumar3279 5 років тому +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 3 роки тому

      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 3 роки тому

      @Leonidas Levi Instablaster :)

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

      @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 3 роки тому

      @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 3 роки тому

      @Leonidas Levi glad I could help :)

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

    How do we write the program to print 54321,5432,543,54 in triangle shape?

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

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

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

    please make a video using while loop wiht the same concept

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

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

    Please do upload more videos of pyramid and programmes logical

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

    What if we want the output with only one print function

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

      for i in range(1,n+1):
      print(str(i)*i)
      Try this 😊

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

    mam how to print that pattern program using while loop

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

      ua-cam.com/video/P2Gs2U2_sHI/v-deo.html
      you can modify that code to get number pattern :)

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

      Amuls Academy Thank u soo much

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

    Thank you so much👍👍

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

    You Can Solve It Without Two Functions By Using range
    N = int(input())
    X = range(0,N)
    for i in X:
    print(*range(1,i+2),sep="")

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

    for i in range(1,11):
    for j in range(1,11):
    k=i*j
    print k,
    print ''
    can u please explain the logic of this code

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

      It looks like multiplication table.
      in the first row you are multiplying 1 with 1,2...........................10
      second row you are multiplying 2 with 1,2...........................10
      third row you are multiplying 3 with 1,2...........................10
      if you multiply column and row it will print this pattern
      :)

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

    Thank you very much.

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

    Thank u🙌🏻♥️