Python Pattern Program - Number Pattern (Printing Numbers in Pyramid Shape)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

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

  • @МаксимБездітко
    @МаксимБездітко 3 ปีที่แล้ว +13

    Personally I am from Ukraine and i have been looking for such a cool and skillful teacher like you for so long time. And finally i succeed. You can explain such uneasy and sometimes challenging things in a really good and easy to understand way so that I am just being amazed at your skills of teaching. With love from Ukr! The English Language is a great force. I am only 15 years old and I reckon everything is ahead!

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

    Best teacher !!! Thanks a lot Mam.
    I tried solving this by myself , without watching your video. Hope it will help someone.
    rows =8
    for i in range(1,rows):
    for j in range(rows-i,-1,-1):
    print(end=" ")
    for j in range(i,0,-1):
    print(j, end="")
    for j in range(2,i+1,):
    print(j, end="")
    print()

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

      ❤️😊

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

      @@AmulsAcademy Just a request , in your upcoming videos please explain time complexity as well, while explaining algorithms.

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

    U r voice is too good to listen
    And u r explaining perfectly

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

      I want some more patterns like this☺️☺️

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

    This is outstanding channel, to build the logic from scratch!! Amulyaji aap ka voice, teaching style awesome, it wont distract when u are teaching. Love it it!!

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

      Thank you so much 😀

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

    you really made a hard work to make users understand in a simple way but i had to concentrate a lot to understand as your voice distracted me a lot..........your voice is god gift......

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

    Ur explanation is crystal clear 👍

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

    Great.Well explained for beginners.Thanks a lot for sharing knowledge.

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

    Absolutely ur good teacher in python

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

    Can u please upload some harder patterns? It would be a great help.
    And thanks for this one...it really helped a lot

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

      Ok :)

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

      ​@@AmulsAcademy your program was wrong (check with 10 or above value , you wont get pyramid) you can observe at 11:14 last line of output pattern was wrong

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

      @@shesharajupallysaikumar904 that is double digit 10

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

    Simply you’re a genius

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

    Your voice is lovely ❤️ and so easily you teach them all in a simple way with easy and understanding English language for new comers 🙏plz you always make this type of coding vedios we learn to you a different and good kind of logics , methods, 🙏jai shree ram 🙏, keep going on

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

    Thank You for supporting us madam,,,

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

    Mam your teaching is awesome.. I really love your teaching.. Mam I want python program for "pascal's triangle" will you please mam..

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

    You explain very well mam 😊

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

    In love with ur voice amulya.. plzz like me

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

    Really very good and awesome explanation

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

    Your voice is inspiring a lot

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

      Thank you :)

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

      can you please make a program for letter "C"

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

    Mam output is coming in different shape

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

    Hi, I started learning python... Too good lesson... Really thanks to U..

  • @Miguel-qw6bn
    @Miguel-qw6bn 3 ปีที่แล้ว +1

    Thank You for supporting !

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

    Tank you so much madam. Your video help to learn Python easily

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

    Can you explain how one can code to print Binomial Distribution or Pascal's Triangle, like 1, 11, 121, 1331, etc? Thank you.

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

    Nice.. Easy to understand... Thankyou amuls

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

    Thanks Mam
    Respect from Pakistan

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

    Mam which one do u use to compile

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

    Very very good voice for aur learning Python ..am realy attract.

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

    wow no words for your explanation!!!!!!

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

    Great job👨‍💻👨‍💻👨‍💻

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

      Thank you so much 😀

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

    Awesome! Please, keep posting with new programming solutions. Thank you...:)

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

      Thank you :)
      Yes i will keep posting videos on new topics.
      Keep learning
      :)

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

    Your videos are really good. Thanks for sharing with us.

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

    Explanation is simply superb Ms.Amulya :-)

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

    Which application Ur using to run python

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

    Thank you for this video. It helped me understand every iteration

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

      th-cam.com/play/PLFMdA1UJVR4bm0o8vTa9dcOS3_HNSP-fa.html

  • @Navya-s8o
    @Navya-s8o 3 ปีที่แล้ว +2

    When I execute same program in my laptop I won't getting actual output some what am getting what's wrong?

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

      Give me the program please, i will check :)

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

    What would be the program if v wanted to print the same triangle shape but instead of numbers v wanted "*"?

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

      in print function print star :)

  • @hariram-uu2qx
    @hariram-uu2qx 4 ปีที่แล้ว +1

    Very nice explanation thank you 😊

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

    instead of writing end=" "we can just put a comma also. Thanks a lot by the way

  • @Jc-handle-with-care
    @Jc-handle-with-care 4 ปีที่แล้ว +1

    thanks, ,you re a good teacher

  • @SurajPrajapati-bl5vp
    @SurajPrajapati-bl5vp 5 ปีที่แล้ว +1

    Nice explanation mam...

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

    Can we reduced the numbers of code line

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

    hello amuls very good code, congratulations on the channel

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

    @amul acedamy Hi could u explain how range (I, 0,-1)
    Works

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

      if i take range(5,0,-1) it will take value as 5 4 3 2 1
      :)

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

    Very nice
    Madam👍👍👍👍

  • @AR-ut1qe
    @AR-ut1qe 4 ปีที่แล้ว +2

    Great video! How could I do the inverse? I mean, add or score 1 in the middle instead of substracting. I am trying but I can't.

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

    Thank you Ma'am

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

    why did u add '0' in for loop(i,0,-1)? what is zero used for?

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

      0 is the end value ,
      range() syntax is range(start, end, step).
      for i in range(5,0,-1) it will give output as 5 4 3 2 1 , here 0 is end value which is excluded in range().

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

      thank you! makes sense!

    • @Ankit-mq6em
      @Ankit-mq6em 6 ปีที่แล้ว

      Mam I am getting wrong patterns yyyy??

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

      When we give range(5,0) it prints in reverse order then y should we give the step as -1. Crt me if i am wrong..plz

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

      if you don't put 0 there it will not show 1 in that pattern

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

    Are 4 loops required?
    n = int(input("Enter the number: "))
    L = [x for x in range(1, n+1)]
    for i in range(1, n+1):
    a = list(map(str, L[0:i]))
    s = " ".join(a[1:][::-1] + a)
    print(s.center((4*n)-3, " "))

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

    Hi I have a doubt.. How to find Fibonacci number. Please can you send me code?

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

      Video link:
      th-cam.com/video/wN45AChk9U4/w-d-xo.html
      :)

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

      @@AmulsAcademy thanQ

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

    Mam what's your python version, I can't run it correct

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

    how can i build the list of pyramid with different numbers

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

    nicely explained.good job.

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

    hi mam . i understand when u teach but feel difficult to do myself . how to improve my programming knowledge .

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

      practicing

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

    Excellent madam it is very much interested madam tq sooooooooo much

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

    awesome explaination

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

    very well explained !! thanks a lot!!!

  • @Music.Air99
    @Music.Air99 4 ปีที่แล้ว +1

    thank you so much mam explained great!

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

    such a simple explanation. keep it up

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

    Why are you not uploading any video?

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

    Good programmer. Pls explain how to copy data from online with python xml....

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

    Easy to understand python .this video more help.pls upload php lesson video.

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

    what is the difference between a while loop and for loop

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

      While loop will execute block of code until a certain condition is met.
      For loop is used to iterate over elements of a sequence. It will executes block of code "n" times.
      :)

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

      While loop is used if iterations or unknown and for is used if the iterations are known

  • @शिवणकला
    @शिवणकला 5 ปีที่แล้ว +2

    Great and thanks

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

    Thank You Very Much For Such A Great Explanation : )

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

    can you tell that the code for * pattern

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

    Learning is so good

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

    When we give range(5,0) it prints in reverse order then y should we give the step as -1. Help me with this problem..plz

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

      by default step value is +1.
      when you mention range(0,5) by default it will take step value as 1 and we will get 0,1,2,3,4.
      But in range(5,0) starting value is 1 and ending is 0 and you didn't mentioned step so it will take default value that is +1, so it won't print anything.
      [You are telling to print values from 5 to 0 , and difference between second value and first value {step} to be +1 , it can't be possible.]
      so you should mention step as -1.
      range(5,0,-1): 5 4 3 2 1
      difference between second value{4} and first value{5} is -1.
      :)

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

    Madam thank you for the pattern program. But I think in all the print statements inside the for loops we need space. Otherwise pattern does not come as exact as shown in the beginning. Thank you very much.

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

      yes you can use space or you can use format() for space management
      :)

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

      Amuls Academy

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

      Thank you very much. How to generate Armstrong numbers. I know their are these numbers which are Armstrong but I am not able to generate it.. 153,370,371, and 407.

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

    dear mam. i have problem here i cant shape the triangle do somebody has the same issue?

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

      Can you share your program here i will check :)

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

      @@AmulsAcademy nvm i rechecked and its all fine thank u

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

      Swaraj Shimpi you didn't declare the po function

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

    can we do the came with alphabet

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

    @Amuls Academy your program was wrong (check with 10 or above value , you wont get pyramid) you can observe at @11:14 last line of output pattern was wrong

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

      Program is not wrong , Because 10 and above has 2 digits output looks like that.
      You can format the output using format() and you can get proper shape.
      :)

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

      @@AmulsAcademy thanks for reply plzz share the code using format() in comments

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

    i want to use it opposite of it .like an arrow but its not working just help

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

      I tried this:
      num=9
      for i in range (1,num+1):
      for j in range (1,i):
      print (end=".")
      for j in range (num-i+1,1,-1):
      print (j, end="")
      for j in range(1,num-i+2):
      print (j, end="")
      print()

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

      @@janso8463 num=9
      for i in range (1,num+1):
      for j in range (1,i):
      print (end=" ")
      for j in range (num-i+1,1,-1):

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

  • @SurajPrajapati-bl5vp
    @SurajPrajapati-bl5vp 5 ปีที่แล้ว +1

    Nice voice
    .....

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

    Voiceeeeeee😍😍😍😍

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

    Mam, pls post Pascal triangle program

  • @RanjithKumar-jo7xf
    @RanjithKumar-jo7xf 6 ปีที่แล้ว +1

    Very useful one

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

    how can i reverse the pattern upside down

  • @StatusKing-xp2xu
    @StatusKing-xp2xu 5 ปีที่แล้ว

    #shortest code ever
    i=1
    r=4
    for j in range(1,5):
    for p in range(0,r):
    print(" ",end="")
    print(i*i)
    i=i*10+1
    r=r-1

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

    what is the code for 4th part

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

      4th part is last space right?, No need to print that
      :)

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

      @@AmulsAcademy ya I know that,but I tried to print * in that space.thats y I asked uand I got it

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

    Why you will not take 0th row

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

      Because here i am printing value 1 in the first row, so i took range from 1.
      :)

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

    Thank you so much Mam

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

    you just learn c-corner website you copy the c corner website code

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

    Pls give me suggestions how print in C program....to print value range

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

    hello mam... i find it difficult tht how do u make concepts in different pattern. i find it really tough.... plz help

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

      You can write the program in different ways but you need to understand the logic first:)

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

    hi mam can you help me to print
    1
    2 3
    4 5 6
    and going on

  • @SantoshSahu-so2ji
    @SantoshSahu-so2ji 6 ปีที่แล้ว +1

    ur voice is so sweet

  • @abhiShek-zi4sh
    @abhiShek-zi4sh 4 ปีที่แล้ว

    this is better:
    c=int(input('please enter the number for this kind of structure'))
    for i in range(1,c+1,1):
    print(" "*(c-i) , end="")
    for j in range(1,2*i):
    if j

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

      Wrong out put

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

      try this: (you can optimize this code)
      num =int(input("Enter number of rows"))
      for i in range(num):
      for j in range((num+num)-1):
      if(j=num-(i+1) and j

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

    Thanks a lottt

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

    Best👍👍👍

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

    Thanks a lot!!!🥰

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

    Actually, we can print the Pyramid with just one for loop

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

      Yes we can :)

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

      @Anirvan Sen j=9 #variable used for denoting spaces
      n=int(input("enter how many rows of stars you want to print:"))
      for i in range(1,n,2):
      print(' '*j+i*'*')
      j=j-1

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

      @@ArunRajpidige I have seen that video too.

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

    THANK U !!!!!!!!!!!!!!!!!!

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

    thank you so much

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

    I don't get how range(I,0,1) is 1

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

      I think you are asking about
      range(1,0,-1)
      then
      start = 1
      end= 0
      step =-1
      so first it will print 1 then it will see step so value becomes 0 [1(start)-1(step)] but end is also 0 so it will stop the execution.
      :)

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

      -1 acts as the iterator...

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

    Please make a program video on pascal triangle

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

    good work

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

    Aapki aawaz kinni payari hai 😍😘

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

    Please make a program for palindrome number.... in python it is as asking frequently in many interviews

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

      th-cam.com/play/PLFMdA1UJVR4bm0o8vTa9dcOS3_HNSP-fa.html

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

    I love your brain ;)

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

    Brilliant

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

    Your voice 😍

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

      Thank you :)

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

      @@AmulsAcademy can I get ur number 😀