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
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.
This is the best video i ever seen on you tube about different patterns. Thanks a lot for sharing your knowledge.
I agree with you 😊😊
thank you I had a small programming problem your video helped out
actully after this now im cleared with my concepts...................thanku you so much litreally
thank you so much mam its really help me alot u r a great teacher😍😍
Thank you mam
When see your video all dought clear in nested loop. 👌👌
You r amazing
Thnx for this wonderful explanation ❤
Thanks mam❤ outstanding explanation👍
I love your lectures so much, but I don't even know your name. YOU ARE DOIN G A GREAT JOB.
thanks for making this video, it helps me alot]
Thankyou so much mam❤️do more videos on python
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.
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.
Thanks very much
Very helpful
if row is row//2 then what will be the conditon to print left diagonal 8:06 ?
THANK YOU
medum will you plz guide how to keep spaces between numbers instead of stars in stars,triangle,and pyramid pattrens..
I ran the formula provided however the "j==" didn't work, no respective pattern could be generated
Best explanation ever just one problem your voice is so down.
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?
Mam can you explain the j==n-2 condition
At 11:33 in else statement we shoukd print space instead of *.
please explain at 7:46 in more detail.
Good
Mam else statement me print me " * " nhi hoga only " " space hoga maidam ji
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
Can you make complete python course like this .
We do have a Python Playlist which covers all of these videos - ua-cam.com/play/PLWWFf_h_MQRqgCdK-536AE7wy9GSO35cu.html
How to give different symbols in right angle triangle at three sides?(#,_,*)
Mam how to print like this in hollow abacdefg.......
hollow diamond pattern?.
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
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
Can you please post the video on hollow number please?
Why do we have to use OR not AND, Madam ?
How to avoid the spaces from starting and ending in output.
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
Same doubt bro
Yes bro
# 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()
Mam could u pls make a video on the different progarms based on strings list tuple and dictionary?
I need hots qns based on that..
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
What we can do if we input even no
Can you make a video on database and DBMS of class 7
We have this video for Database basics for class 7: ua-cam.com/video/UsBJ9l5tajA/v-deo.html
@@SimplyCoding OK thanks after months I found your channel
For mid row and mid column if we write if (i==n/2) or (j==n/2). what will happen?
It will give float value
10:40 if we give n=6 I'm not getting diagonal output
In odd number pattern you have a proper diagonal, not in even nos.
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
You can send your code to us at info@simplycoding.in. We will help you fix it.
Where we can ask or send our doubt
you can write to us at info@simplycoding.in
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.
Full Marks for paying attention ! you are right, it should be space.
What if we have to print changing no😢
Did you get answer or i tell to your
17:28
Hello madam can you explain this please
input = 4
+ + + +
# #
# #
#
There is a mistake at 11:38
but not working square pattern
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
#nxtwave
😄😄😄same here.. Brother I'm stuck at this.. Plz do share any videos or solutions for these type..
@karima u ccbpian??
@karima your linkedin id plz.. Did u solve these?
You haven't defined the "i" variable in whole code
the variable is given the values depending upon the range mentioned
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()
Ek bhi execute nahi ho raha sahi se daimond shape wala
Hi you can send you code to info@simplycoding.in and we can help correct it
broke gang
Your code is totally wrong not come output properly
You can send your code to info@simplycoding.in so that we can help you correct it
I also face this problem but you have to write print statement for correct loop.