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

Поділитися
Вставка
  • Опубліковано 30 лип 2020
  • In this python programs video tutorial you will learn to print stars in pyramid shape in detail.
    We used Nested for loops to write this program.
    Printing Stars in Right Triangle Shape (mirror image)
    • Printing Stars "*" in ...
    Printing Stars in Right Triangle Shape:
    • Printing Stars "*" in ...
    Printing Stars in Inverted Right Triangle Shape
    • Printing Stars "*" in ...
    #PythonPrograms #PatternProgram
    You can Checkout:
    ProgramsAndMe
    programsandme

КОМЕНТАРІ • 91

  • @rashichaudhry5954
    @rashichaudhry5954 7 місяців тому +6

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

  • @beckypang5251
    @beckypang5251 2 роки тому +7

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

  • @shashankrai6349
    @shashankrai6349 Рік тому +7

    loved it ! thank u for teaching us !

  • @KishoreKumarV-ky6sh
    @KishoreKumarV-ky6sh 2 місяці тому +1

    Excellent explanation of logic the best channel for learning about patterns

  • @tanushreegharami227
    @tanushreegharami227 Рік тому +1

    You got one more subscriber 😊 Thanks very helpful

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

    Great explanation with a beautiful voice.Thanks

  • @1karachii
    @1karachii 9 місяців тому

    Amazingly Explained thanks

  • @pannagabm2100
    @pannagabm2100 10 місяців тому

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

  • @dyotakgiri79
    @dyotakgiri79 11 місяців тому +1

    What a nice explanation!!!

  • @umeshsingh-nx1zq
    @umeshsingh-nx1zq Рік тому +1

    what an awesome explanation

  • @LearnComputerWithAwais
    @LearnComputerWithAwais Рік тому +1

    Awesome Video and Good Explanation

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

    Wow th way of explaining pyramid star very nice

  • @user-et7jy7bu3j
    @user-et7jy7bu3j 8 місяців тому

    Ty bro, was about to give up ❤

  • @sekharbabusaripalli181
    @sekharbabusaripalli181 Рік тому +1

    Very Good explanation sister 😊

  • @talhadawar8317
    @talhadawar8317 2 місяці тому

    Thnks mam what a wonderful and simple explanation ❤

  • @sreedharlikit8966
    @sreedharlikit8966 Рік тому +1

    Hats off super mam

  • @abubakarhamad8214
    @abubakarhamad8214 2 роки тому +2

    Simple explanation

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

    good explanation madam

  • @dineshreddynarsing4788
    @dineshreddynarsing4788 Рік тому +1

    Nice explanation

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

    thankyou all doubt clear

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

    You are the best ❤

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

    Thank you.

  • @ylmazoncu5693
    @ylmazoncu5693 9 місяців тому

    Thank you!

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

    apka dhanyawaad

  • @Vaibhavi_Nayak
    @Vaibhavi_Nayak Рік тому +1

    Loved your explanation..

  • @fuhua2362
    @fuhua2362 Рік тому +1

    this was more good than our teacher

  • @chandrasekars8904
    @chandrasekars8904 28 днів тому

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

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

    Very helpful tutorial

  • @joyprokash4013
    @joyprokash4013 Рік тому +1

    thanks a lot

  • @shravanacharya5987
    @shravanacharya5987 5 місяців тому +1

    Wah bete mauj kardi.

  • @VenkatasaiEppakayala
    @VenkatasaiEppakayala 4 місяці тому

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

  • @praneethd9436
    @praneethd9436 3 місяці тому

    Good explanation

  • @Hi_kartik
    @Hi_kartik Рік тому +3

    n = 5
    i = 1
    while i

  • @parmarfamily6311
    @parmarfamily6311 Рік тому +2

    Usefull

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

    Thnx mam

  • @De.Raizel
    @De.Raizel Рік тому +2

    Thanks

  • @holy-crusader6139
    @holy-crusader6139 6 місяців тому

    bro thanks very good video

  • @dhanashrichitukane1121
    @dhanashrichitukane1121 Місяць тому

    Thanks ❤ dear

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

    your voice is very nice

  • @akashdeep_x464
    @akashdeep_x464 Рік тому +1

    Wow

  • @rsnda974
    @rsnda974 3 місяці тому

    Excellent I understood please help in fubunocci

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

    👍👍👍👍

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

    Great

  • @GuitaristAlok
    @GuitaristAlok Рік тому +1

    like your videos and voice tooo👍❣

  • @adarshkhatri993
    @adarshkhatri993 2 роки тому +2

    Good explanation 😁

  • @mashapoguajay3322
    @mashapoguajay3322 Рік тому +1

    Thanks madam 😊

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

    Is it possible to print an isosceles triangle?

  • @amariealfaro1365
    @amariealfaro1365 Рік тому +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

  • @palakgrover9925
    @palakgrover9925 Рік тому +1

    Which platform is she using here?

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

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

    Hi Amulya ji

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

    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

  • @aishwarydandale6041
    @aishwarydandale6041 2 роки тому +2

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

  • @aperson6405
    @aperson6405 4 місяці тому

    goat

  • @lm2thed142
    @lm2thed142 4 місяці тому

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

  • @medarametlapraveen
    @medarametlapraveen Рік тому +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 Рік тому

      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 10 місяців тому +1

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

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

    U voice is like amulya academy only

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

      This is Amulya academy second UA-cam channel only

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

      why do indians say 'only' after every sentence

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

    Ur amulya academi right

  • @VinayKumar-ek5el
    @VinayKumar-ek5el Рік тому

    Mera issi code se kuch or hi print kr rhaa h

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

    i have an doubt

  • @bdof6528
    @bdof6528 3 роки тому +24

    U voice match with amulya academy girl?

    • @programsandme7593
      @programsandme7593  3 роки тому +37

      Yeah.. because this is my another channel 😊

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

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

    • @viratstatus1019
      @viratstatus1019 Рік тому +2

      @@programsandme7593 😂

    • @hi.996
      @hi.996 Рік тому

      ​@@bdof6528 🗿

    • @05c4_sharmila5
      @05c4_sharmila5 11 місяців тому

      😂😂😂

  • @VinothKumar-ej4nn
    @VinothKumar-ej4nn 2 роки тому +2

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

  • @Sachin-yo3jw
    @Sachin-yo3jw 10 місяців тому +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)

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

    South Indian

  • @priyanshudutta3229
    @priyanshudutta3229 Місяць тому

    yennnnnnnnnnnnnnnnnnnnnn

  • @vaidikayadav294
    @vaidikayadav294 4 місяці тому

    Bro its an not yan

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

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

    n is pronounced as yen XD

  • @MuhammadAshrafAshraf-mb1qi
    @MuhammadAshrafAshraf-mb1qi 7 місяців тому

    Thank you!