Printing Stars "*" in Pyramid Shape | Triangle | Python Pattern Program

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 105

  • @rashichaudhry5954
    @rashichaudhry5954 Год назад +8

    very well explained! saw so many videos but this was the easiest to understand :)

  • @beckypang5251
    @beckypang5251 2 года назад +8

    excellent explanation, not only for this questions but also help me to do other printing star pattern questions

  • @twister1182
    @twister1182 6 месяцев назад +2

    Explained in a very simple way. Thanks👍

  • @Hi_kartik
    @Hi_kartik 2 года назад +5

    n = 5
    i = 1
    while i

  • @shashankrai6349
    @shashankrai6349 2 года назад +8

    loved it ! thank u for teaching us !

  • @VenkatasaiEppakayala
    @VenkatasaiEppakayala 10 месяцев назад

    This is the short code that I have never seen in another videos and websites

  • @TolgacengizhanÇağlar
    @TolgacengizhanÇağlar Год назад

    Ty bro, was about to give up ❤

  • @KishoreKumarV-ky6sh
    @KishoreKumarV-ky6sh 8 месяцев назад +1

    Excellent explanation of logic the best channel for learning about patterns

  • @AnuragS10
    @AnuragS10 Месяц назад

    To print the odd number of stars (1,3,5,7,9...) with space between stars:
    for i in range(n):
    for j in range(n-i-1):
    print(" ", end=" ")
    for j in range(2*i+1):
    print("*", end=" ")
    print()

  • @ievgendergausov2867
    @ievgendergausov2867 4 месяца назад +1

    Thank you very much 👍 very easy and simple

  • @shra7an
    @shra7an 11 месяцев назад +1

    Wah bete mauj kardi.

  • @sekharbabusaripalli181
    @sekharbabusaripalli181 Год назад +1

    Very Good explanation sister 😊

  • @talhadawar8317
    @talhadawar8317 8 месяцев назад

    Thnks mam what a wonderful and simple explanation ❤

  • @lalitupadhyay7067
    @lalitupadhyay7067 Год назад

    Wow th way of explaining pyramid star very nice

  • @chandrasekars8904
    @chandrasekars8904 7 месяцев назад +1

    This is really an excellent channel on Python like "techie talkee"

  • @adithyankbabu2209
    @adithyankbabu2209 5 месяцев назад +1

    Thanks for everything mam😌😌👌

  • @pannagabm2100
    @pannagabm2100 Год назад

    Thank you mam.. This is the best video i got ❤

  • @DigB_Gamer
    @DigB_Gamer Год назад

    Great explanation with a beautiful voice.Thanks

  • @Fuka_Hua
    @Fuka_Hua 2 года назад +1

    this was more good than our teacher

  • @tanushreegharami227
    @tanushreegharami227 Год назад +1

    You got one more subscriber 😊 Thanks very helpful

  • @MALAYALIKKARAN
    @MALAYALIKKARAN 2 месяца назад +1

    Is it amulyas channel.Didnt know.Gonna subscribe

  • @siennaharris1380
    @siennaharris1380 3 года назад +4

    Very helpful tutorial

  • @prettypretty05
    @prettypretty05 Год назад

    You are the best ❤

  • @GuitaristAlok
    @GuitaristAlok Год назад +1

    like your videos and voice tooo👍❣

  • @umeshsingh-nx1zq
    @umeshsingh-nx1zq 2 года назад +1

    what an awesome explanation

  • @LearnComputerWithAwais
    @LearnComputerWithAwais Год назад +1

    Awesome Video and Good Explanation

  • @abubakarhamad8214
    @abubakarhamad8214 2 года назад +2

    Simple explanation

  • @HapSadedits
    @HapSadedits 5 месяцев назад +1

    is it compulsory to take j can we use other alphabets

  • @185PerCentJuice
    @185PerCentJuice 4 года назад +2

    Is it possible to print an isosceles triangle?

  • @1karachii
    @1karachii Год назад

    Amazingly Explained thanks

  • @dyotakgiri79
    @dyotakgiri79 Год назад +1

    What a nice explanation!!!

  • @rsnda974
    @rsnda974 9 месяцев назад +1

    Excellent I understood please help in fubunocci

  • @palakgrover9925
    @palakgrover9925 2 года назад +1

    Which platform is she using here?

  • @amariealfaro1365
    @amariealfaro1365 2 года назад +1

    Hello newbie here maam. it show the full pyramid and the right.. what about the left? Thank u

    • @MaahirCodes
      @MaahirCodes Год назад

      See, the code in the video is unnecesarily long
      n = int(input("No. of rows required: "))
      for i in range(1,n+1):
      m = n-i
      print("-"*m, end="")
      print("x "*i)
      Try this

  • @holy-crusader6139
    @holy-crusader6139 Год назад

    bro thanks very good video

  • @dineshreddynarsing4788
    @dineshreddynarsing4788 2 года назад +1

    Nice explanation

  • @joyprokash4013
    @joyprokash4013 Год назад +1

    thanks a lot

  • @mac2857
    @mac2857 2 года назад

    your voice is very nice

  • @Vaibhavi_Nayak
    @Vaibhavi_Nayak 2 года назад +1

    Loved your explanation..

  • @sreedharlikit8966
    @sreedharlikit8966 2 года назад +1

    Hats off super mam

  • @De.Raizel
    @De.Raizel 2 года назад +2

    Thanks

  • @nireekshangoddugorla7921
    @nireekshangoddugorla7921 2 года назад +1

    good explanation madam

  • @medarametlapraveen
    @medarametlapraveen 2 года назад +5

    i developed a very simple code for this
    n=int(input("no of rows required: "))
    m=n-2
    for i in range(1,n):
    print(' '*m,end='')
    print('x '*i)
    m=m-1

    • @scbdfbhgjkhlxzcfbdjhkls6912
      @scbdfbhgjkhlxzcfbdjhkls6912 2 года назад

      it prints 1 layer less

    • @MaahirCodes
      @MaahirCodes Год назад +1

      its incorect
      1) The Space is not printed properly( It only prints 2 spaces per row
      2) One layer less
      Fixed Code:
      n = int(input("No. of rows required: "))
      for i in range(1,n+1):
      m = n-i
      print("-"*m, end="")
      print("x "*i)
      Sol 1)It should be m - i as for 5 rows the first row needs 4 spaces and thus, in the range 1,6(1,n+1) starting value of i will be 1
      hence m-i(1) = 4
      this fixes the space problem
      Sol 2) The range must be n+1 as the value of the range is start,end+1 hence if rows inputed is 5, for 5 rows a value of 1,6( n + 1)

    • @trueAKspeaks
      @trueAKspeaks Год назад +1

      Atleast you tried and most importantly, it works. Just one row lesser.

  • @dhanashrichitukane1121
    @dhanashrichitukane1121 7 месяцев назад +1

    Thanks ❤ dear

  • @ТомирисКайрова-ъ5ь
    @ТомирисКайрова-ъ5ь 3 месяца назад

    ты самая лучшая женщина на свете

  • @sarubet8725
    @sarubet8725 2 года назад

    Can we do it without input command?

    • @MaahirCodes
      @MaahirCodes Год назад

      It is possible but then yuuou can only get the pyramid for aa fixed value, ie cannot be inputed by the user

  • @adarshkhatri993
    @adarshkhatri993 3 года назад +2

    Good explanation 😁

  • @firesevn1133
    @firesevn1133 2 года назад

    thankyou all doubt clear

  • @ylmazoncu5693
    @ylmazoncu5693 Год назад

    Thank you!

  • @bdof6528
    @bdof6528 3 года назад +30

    U voice match with amulya academy girl?

    • @programsandme
      @programsandme  3 года назад +44

      Yeah.. because this is my another channel 😊

    • @bdof6528
      @bdof6528 3 года назад +2

      @@programsandme congrats ❤️🎉
      U are too good in programing 🔥

    • @viratstatus1019
      @viratstatus1019 2 года назад +2

      @@programsandme 😂

    • @hi.996
      @hi.996 Год назад

      ​@@bdof6528 🗿

    • @05c4_sharmila5
      @05c4_sharmila5 Год назад

      😂😂😂

  • @vamshithota4919
    @vamshithota4919 2 года назад +1

    U voice is like amulya academy only

    • @haribol6076
      @haribol6076 2 года назад

      This is Amulya academy second RUclips channel only

    • @mac2857
      @mac2857 2 года назад

      why do indians say 'only' after every sentence

  • @williamjayaraj2244
    @williamjayaraj2244 2 года назад

    Thank you.

  • @noushadkhan68
    @noushadkhan68 2 года назад

    apka dhanyawaad

  • @surajnawghare2065
    @surajnawghare2065 4 года назад +2

    Great

  • @lm2thed142
    @lm2thed142 11 месяцев назад

    this madea prarralelogram for me?
    x= int(input("please enter the amount of rows you would like: "))
    for i in range(x):
    for j in range(x-i-1):
    print(" ",end="")
    for k in range(x+1):
    print("#",end=" ")
    print()

  • @vamshithota4919
    @vamshithota4919 2 года назад

    Please explain hollow pymarid

    • @MaahirCodes
      @MaahirCodes Год назад

      # Generating Hollow Pyramid Pattern Using Stars
      row = int(input('Enter number of rows required: '))
      for i in range(row):
      for j in range(row-i):
      print(' ', end='') # printing space required and staying in same line

      for j in range(2*i+1):
      if j==0 or j==2*i or i==row-1:
      print('*',end='')
      else:
      print(' ', end='')
      print() # printing new line

  • @Sachin-yo3jw
    @Sachin-yo3jw Год назад +1

    l=[]
    for i in range(1,9,2):
    l.append('*'*i)
    for j in range(0,len(l)):
    b=len(l[-1])-len(l[j])
    c=int(b/2)
    l[j]=" "*c+l[j]+" "*c
    for p in l:
    print(p)

  • @akashdeep_x464
    @akashdeep_x464 Год назад +1

    Wow

  • @aishwarydandale6041
    @aishwarydandale6041 2 года назад +2

    ur voice ❤️❤️❤️❤️❤️❤️

  • @mashapoguajay3322
    @mashapoguajay3322 2 года назад +1

    Thanks madam 😊

  • @VinothKumar-ej4nn
    @VinothKumar-ej4nn 3 года назад +2

    Not proper o/p ...
    It's coming EOFerror:

    • @programsandme
      @programsandme  3 года назад

      Give me the program, I will check 😊

  • @easternwizard9869
    @easternwizard9869 Год назад

    i have an doubt

  • @sahilvats5680
    @sahilvats5680 Год назад

    👍👍👍👍

  • @vishnukothapally9360
    @vishnukothapally9360 Год назад

    Ur amulya academi right

  • @digambar6191
    @digambar6191 2 года назад

    Thnx mam

  • @VinayKumar-ek5el
    @VinayKumar-ek5el 2 года назад

    Mera issi code se kuch or hi print kr rhaa h

  • @sreeramojusingamalai7472
    @sreeramojusingamalai7472 2 года назад

    Hi Amulya ji

  • @aperson6405
    @aperson6405 10 месяцев назад

    goat

  • @XILK_525
    @XILK_525 Год назад

    South Indian

  • @bilalraza8139
    @bilalraza8139 3 года назад

    Jab koi jyada English bolta hai
    To mera dil karta hai...
    English me video bana rahe ho
    Or mujhe kuch ghanta samajh nahi aara

  • @ppd_85
    @ppd_85 7 месяцев назад

    yennnnnnnnnnnnnnnnnnnnnn

  • @vaidikayadav294
    @vaidikayadav294 10 месяцев назад

    Bro its an not yan

  • @sinx7472
    @sinx7472 Год назад

    n is pronounced as yen XD

  • @praneethd9436
    @praneethd9436 10 месяцев назад

    Good explanation

  • @parmarfamily6311
    @parmarfamily6311 2 года назад +2

    Usefull

  • @MuhammadAshrafAshraf-mb1qi
    @MuhammadAshrafAshraf-mb1qi Год назад

    Thank you!