How to solve Square and Hollow pattern programs in Python

Поділитися
Вставка
  • Опубліковано 19 лип 2024
  • This video explains how to write various Square and Hollow pattern programs in Python
    00:00 - Solve Square and Hollow pattern programs in Python
    00:21 - Printing Basics
    02:04 - Square Pattern in Python
    06:05 - Indexes in Python
    08:14 - Parallel Bar Pattern in Python
    09:47 - Plus Pattern in Python
    10:16 - Cross Pattern in Python
    10:41 - Hollow Square Pattern in Python
    11:39 - Hollow Triangle Pattern in Python
    12:13 - Hollow Increasing Triangle in Python
    13:32 - Hollow Decreasing Triangle in Python
    13:35 - Hollow Hill Pattern in Python
    15:51 - Hollow Diamond Pattern in Python

КОМЕНТАРІ • 80

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

    Thanks for making these videos. It helps a lot. I am new to coding but from your videos it is getting a lot easier to learn python.

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

    This is the best video i ever seen on you tube about different patterns. Thanks a lot for sharing your knowledge.

  • @lucykeenan1768
    @lucykeenan1768 6 місяців тому +1

    thank you I had a small programming problem your video helped out

  • @KhushiKumari-dd6sv
    @KhushiKumari-dd6sv 2 роки тому

    actully after this now im cleared with my concepts...................thanku you so much litreally

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

    thank you so much mam its really help me alot u r a great teacher😍😍

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

    Thank you mam
    When see your video all dought clear in nested loop. 👌👌

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

    You r amazing
    Thnx for this wonderful explanation ❤

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

    Thanks mam❤ outstanding explanation👍

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

    I love your lectures so much, but I don't even know your name. YOU ARE DOIN G A GREAT JOB.

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

    thanks for making this video, it helps me alot]

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

    Thankyou so much mam❤️do more videos on python

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

    what if the n=even number, in the case of star plus hollow pattern, and which row, and column does it take as a center one.

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

    Thank you so much mam. Thnks a lotttt.
    I learnt this topic from your video and I found one small mistake which you not edited mam (in hollow increasing and decreasing triangle in else statement your are given "*" mam. I think I'm correct, if not let me know mam)
    Once again thnk u very much mam.

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

    Thanks very much

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

    Very helpful

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

    if row is row//2 then what will be the conditon to print left diagonal 8:06 ?

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

    THANK YOU

  • @shaikjasmine-vv5yk
    @shaikjasmine-vv5yk Рік тому

    medum will you plz guide how to keep spaces between numbers instead of stars in stars,triangle,and pyramid pattrens..

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

    I ran the formula provided however the "j==" didn't work, no respective pattern could be generated

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

    Best explanation ever just one problem your voice is so down.

  • @fuatcankaburga942
    @fuatcankaburga942 8 місяців тому

    Thank for the lecture, but I couldnt understand the "Hollow Decreasing Triangle in Python" and "Hollow Hill Pattern in Python". Are they correct or work actually?

  • @kumar-ke3ww
    @kumar-ke3ww 2 роки тому

    Mam can you explain the j==n-2 condition

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

    At 11:33 in else statement we shoukd print space instead of *.

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

    please explain at 7:46 in more detail.

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

    Good

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

    Mam else statement me print me " * " nhi hoga only " " space hoga maidam ji

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

    there are many hollow patterns which we can't able to solve with this logic......no help form their website....i think this logic work with these examples. Kindly expecting reply from SIMPLY CODING team. for example if we want number pyramid with in 5x5 pattern... it will not work

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

    Can you make complete python course like this .

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

      We do have a Python Playlist which covers all of these videos - ua-cam.com/play/PLWWFf_h_MQRqgCdK-536AE7wy9GSO35cu.html

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

    How to give different symbols in right angle triangle at three sides?(#,_,*)

  • @mouni-o-
    @mouni-o- 2 роки тому +1

    Mam how to print like this in hollow abacdefg.......
    hollow diamond pattern?.

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

      Pls see the link of how to convert any * pattern to character pattern. You can just apply the same logic here - ua-cam.com/video/uJA-GVWNjcc/v-deo.html

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

    Madam how to print j=0 in that we want to print "/" symbol and j=i we want to print "|" symbol and i=n-1 we want to print "_" symbol madam how to print madam and how to use this the code madam

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

    Can you please post the video on hollow number please?

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

    Why do we have to use OR not AND, Madam ?

  • @user-pq7tu6sk1b
    @user-pq7tu6sk1b Рік тому

    How to avoid the spaces from starting and ending in output.

  • @kiran-hu2uf
    @kiran-hu2uf Рік тому +1

    At 11:38 you are taking j == 0 in 2nd triangle why? Its actually i+j == n-1 but out put is wrong can u explain

  • @Niki-ue6fk
    @Niki-ue6fk 4 місяці тому

    # i think a little mistake in hallow increasing triangle. This is her code only, i hv just corrected the else part . edit : time --> 13.30
    n = 5
    for i in range(n):
    for j in range(i+1):
    if (i == n-1 or j == 0 or j == i):
    print("*",end = "")
    else:
    print(" ",end = "")
    print()

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

    Mam could u pls make a video on the different progarms based on strings list tuple and dictionary?

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

      I need hots qns based on that..

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

    Madam we want to print different symbols in hallow pattern madam in three different symbols madam madam please tell me the how to write a code madam

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

    What we can do if we input even no

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

    Can you make a video on database and DBMS of class 7

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

      We have this video for Database basics for class 7: ua-cam.com/video/UsBJ9l5tajA/v-deo.html

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

      @@SimplyCoding OK thanks after months I found your channel

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

    For mid row and mid column if we write if (i==n/2) or (j==n/2). what will happen?

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

    10:40 if we give n=6 I'm not getting diagonal output

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

      In odd number pattern you have a proper diagonal, not in even nos.

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

    Hii unable to run code as expected once check this whole video and correct because it is not executing as expected please it will help a lot of users

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

      You can send your code to us at info@simplycoding.in. We will help you fix it.

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

    Where we can ask or send our doubt

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

      you can write to us at info@simplycoding.in

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

    You did a mistake at 11:38 .There should not b star(*) in second inner loop .There should be space in order to get hollow shape.

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

      Full Marks for paying attention ! you are right, it should be space.

  • @ooo3A119
    @ooo3A119 7 місяців тому +1

    What if we have to print changing no😢

    • @Unknown_das
      @Unknown_das 14 днів тому

      Did you get answer or i tell to your

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

    17:28

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

    Hello madam can you explain this please
    input = 4
    + + + +
    # #
    # #
    #

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

    There is a mistake at 11:38

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

    but not working square pattern

  • @PBkumar-ml3hx
    @PBkumar-ml3hx 2 роки тому

    madam could you please tell me the patterns using different symbols example "_","|","/" print right angle triangle videos madam how to write a code madam madam how to print hallow space using the above symbols please tell madam and once doing that type of videos madam

    • @ManoharKumar-nr8kb
      @ManoharKumar-nr8kb 2 роки тому +2

      #nxtwave

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

      😄😄😄same here.. Brother I'm stuck at this.. Plz do share any videos or solutions for these type..

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

      @karima u ccbpian??

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

      @karima your linkedin id plz.. Did u solve these?

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

    You haven't defined the "i" variable in whole code

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

      the variable is given the values depending upon the range mentioned

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

    Hollow square pattern solution is wrong it will print a square star pattern not hollow pattern.
    Program :-
    n = 5
    for i in range(n):
    for j in range(n):
    if i == 0 or j == 0 or i==n-1 or j == n-1:
    print('*',end=" ")
    else:
    print("*",end=" ")
    print()
    Output : -
    * * * * *
    * * * * *
    * * * * *
    * * * * *
    * * * * *
    Actual Solution : Problem in else block of code..
    n = 5
    for i in range(n):
    for j in range(n):
    if i == 0 or j == 0 or i==n-1 or j == n-1:
    print('*',end=" ")
    else:
    print(" ",end=" ")
    print()

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

    Ek bhi execute nahi ho raha sahi se daimond shape wala

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

      Hi you can send you code to info@simplycoding.in and we can help correct it

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

    broke gang

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

    Your code is totally wrong not come output properly

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

      You can send your code to info@simplycoding.in so that we can help you correct it

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

      I also face this problem but you have to write print statement for correct loop.