Python Pattern Program - Printing Numbers in Square Shape

  Рет қаралды 95,318

Amulya's Academy

Amulya's Academy

Күн бұрын

Пікірлер
@karankkn3312
@karankkn3312 4 жыл бұрын
PTA nhi kyu log dislike kr dete hai mam aap bahut acchi batati hai..aur aapki voice lovely and attractive hai..thank you to provide such wonderful video...
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you so much :)
@rahavareddy5510
@rahavareddy5510 5 жыл бұрын
Explanation is too gud Subscribed After seeing this video I feel that I wasted my time in other KZbin channels
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@jrk608
@jrk608 6 жыл бұрын
Hi You are helping a lot to every one who ever want to learn python. Could you please teach about some files related programs and regex if u possible . your explanation is very clear
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Thank you:) I have made some videos on regular expression :)
@Juceeass
@Juceeass 5 жыл бұрын
Thanks for this! Your explanations are much easier to understand than my lecturer. subscribed.
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@alexandertenenbein2783
@alexandertenenbein2783 5 жыл бұрын
Your explanations are very clear and you are very helpful. How would you do this program using recursion?
@harshitdixit9285
@harshitdixit9285 4 жыл бұрын
Your videos are one of the best on you tube for learning python and practicing. You explain really very well, problems with their concepts. Please make videos on python hackerrank or codechef problem. Also please try to make videos on python for data science
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Sure thank you :)
@RanjanaDevi-zg8zd
@RanjanaDevi-zg8zd 4 жыл бұрын
Hi Good evening mam You are helpful for programming pythons . and I am learning your KZbin classes. Thank u so much mam
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Pleasure :)
@harshjain1906
@harshjain1906 4 жыл бұрын
Very easily explained and plz never stop
@mahesh4124
@mahesh4124 Жыл бұрын
Clearly explained and Presentation is also very good. Thank you
@akritibhan5858
@akritibhan5858 3 жыл бұрын
so glad that i found your videos....awesome work maam...thanks a lot !!!!!!!!!
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@algoritmuz
@algoritmuz Жыл бұрын
Amulya where are you now! You need for Pythonists? Please come back and live with this channel. Thank you for your work.
@venkateshram6783
@venkateshram6783 4 жыл бұрын
Really I like your teaching wow it's awesome and I can understand easily in Python
@krish_unni
@krish_unni 6 жыл бұрын
Mam, provide videos for Python with database. It would be useful for every beginners.
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Sure:)
@mayuridas5161
@mayuridas5161 4 жыл бұрын
Thank you so much , your explanations are crystal clear .please do make videos on all types of python programming like files as well.Looking ahead to get such more videos form your end.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@Ninflix_Turkish
@Ninflix_Turkish 3 жыл бұрын
@@AmulsAcademy can i get code plz
@Harvindersingh-hb7cb
@Harvindersingh-hb7cb 2 жыл бұрын
Lots of thanks amulya ma'am...🙏
@sunilpatil31914
@sunilpatil31914 4 жыл бұрын
Your explanation is very good and please make a video for python for data science
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Will try :)
@Богвтелечеловека
@Богвтелечеловека 2 жыл бұрын
Thanks a lot. The program works well for a square matrix (isosceles square) and if the matrix is not square and there are two input numbers? And numbers can be less than 3 Example: 5, 7; 8.6; 7.2; 1.8.
@nandhinisubramani9273
@nandhinisubramani9273 3 жыл бұрын
thank u so much .am so lucky to find such a good channel for python. .thank u so much .plz keep going . if possible plz update prgm regarding machine learning..
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@aurasehdev4336
@aurasehdev4336 3 жыл бұрын
Thank you! I was able to learn python easily with your help ^^ Also, pls do face reveal :D
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Noted 😊❤️
@shohailaamil1238
@shohailaamil1238 4 жыл бұрын
Python makes life easier
@sowjanyakuralla1856
@sowjanyakuralla1856 4 жыл бұрын
Ur explanation is good and if you can do this program in c then its help to us
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
I will try :)
@HariRam-ox3sx
@HariRam-ox3sx 4 жыл бұрын
What an explanation! You are simply superb 😍
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you so much 😀
@iamshael
@iamshael 5 жыл бұрын
Awesome mam... Thank you So much... Great Explaination.....
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@priyanshusharma2853
@priyanshusharma2853 3 жыл бұрын
mam will you recommend such questions for beginners ?
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
It is a simple program, you can understand it easily 😊
@alexsalikovnz7530
@alexsalikovnz7530 2 жыл бұрын
Thank you! Awesome explanatory video! Easy to understand seemingly tough concept.
@rajeshtest5180
@rajeshtest5180 4 жыл бұрын
Nice Explanation. Thanks Subscribed and liked.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@margemdostraposbordados2683
@margemdostraposbordados2683 3 жыл бұрын
Hi there. First of all congratulations on your videos, they help a lot people like me, begginers! Second in this program, if we change the variables for the numbers that they represent, why doesn't the code work!? if we change low for 0, or high by 4 the code stops working well! Why?
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :) When you use high as 4, getting any error ? Or wrong output :)
@margemdostraposbordados2683
@margemdostraposbordados2683 3 жыл бұрын
@@AmulsAcademy Thank you for your feedback! 👏 I'm not getting error, i'm getting wrong output! This is the code with the modifications i made: """ Printing Numbers in Square Shape """ # creating nested lists num = int(input("Enter a number: ")) nested_list = [[0 for i in range(num)] for y in range(num)] n = 1 low = 0 high = num - 1 count = int((num + 1) / 2) for i in range(count): for j in range(0, 5): # where i traded low for 0 and high + 1 for 5 nested_list[low][j] = n n += 1 for j in range(1, 5): # where i traded low+1 for 1 and high + 1 for 5 nested_list[j][high] = n n += 1 for j in range(3, -1, -1): # where i traded high-1 for 3 and low-1 for -1 nested_list[high][j] = n n += 1 for j in range(3, 0, -1): # where i traded high-1 for 3 and low for 0 nested_list[j][low] = n n += 1 low += 1 high -= 1 for i in range(num): for j in range(num): print(nested_list[i][j], end='\t') print() This is the output i got: Enter a number: 5 1 2 3 4 5 17 32 48 22 21 45 44 47 42 37 29 30 46 26 8 13 12 41 25 9
@aishwaryalaxmiveeramalla739
@aishwaryalaxmiveeramalla739 4 жыл бұрын
Mam you can also make a video of printing a pattern in which the sum of rows ,cols and diags should be same
@TalhaClicks
@TalhaClicks 3 жыл бұрын
Great Effort, thanks alot
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure :)
@TalhaClicks
@TalhaClicks 3 жыл бұрын
@@AmulsAcademy welcome
@TalhaClicks
@TalhaClicks 3 жыл бұрын
@@AmulsAcademy Mam I need help in few questions How can i contact you? Please provide me any source for contact.
@mareboinaravi5272
@mareboinaravi5272 5 жыл бұрын
Good explanation thank you Amuls Academy
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Pleasure :)
@jimlycorpuz5134
@jimlycorpuz5134 3 жыл бұрын
your voice is so relaxing :) and very informative hope to see more ! by the way can we make a program a 5x5 table that can show the out put of per column and per row?? thanks a lot!!
@byronharlem7238
@byronharlem7238 3 жыл бұрын
I guess it is kinda randomly asking but does anybody know a good place to stream new series online ?
@murugandevara1982
@murugandevara1982 3 жыл бұрын
Many Thanks Madam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
You are most welcome :)
@alexandertenenbein2783
@alexandertenenbein2783 5 жыл бұрын
Could this program be done in fewer steps using lambda, map, filter, and/or reduce?
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
You can try and share with us :)
@satvikarya569
@satvikarya569 4 жыл бұрын
@@AmulsAcademy can i have ur insta id??
@SKRT_DATA_MUSIC
@SKRT_DATA_MUSIC 5 жыл бұрын
Thank you mam this is very nice
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Pleasure :)
@sidduganachari6344
@sidduganachari6344 4 жыл бұрын
In 4th for loop I did not understand Y we are using low-1..it should be till low+1 ryt, because we need low cell to be printed.. Madam please let me clear this in a more simple way
@mariah8629
@mariah8629 4 жыл бұрын
Can I know how to make sequenced squares but from the inside not the outside like this?
@srinivaspaalakaveeti2082
@srinivaspaalakaveeti2082 6 жыл бұрын
Can we so this by swapping method????
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
May be you can try :)
@zanfau
@zanfau 5 жыл бұрын
output m=1 n=20 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 use 1 while loop
@madhankumar1901
@madhankumar1901 5 жыл бұрын
Can u pls say me how to reduce the no.of loops
@jeffryjoseph5596
@jeffryjoseph5596 4 жыл бұрын
thank you so much mam
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Most welcome 😊
@animalsbirds7575
@animalsbirds7575 5 жыл бұрын
Hai madam Have you any python material
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
No sorry :)
@mortifago25
@mortifago25 4 жыл бұрын
Hello from Argentina!! great video,! i do the same but it show me " List assignment index out of range " id check the range already but i cant find the error :( help!
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Give me the program i will check :)
@mortifago25
@mortifago25 4 жыл бұрын
@@AmulsAcademy n = int(input("Tamaño de la matriz N x N: ")) count = int((n+1)/2) high = n-1 low = 0 i=1 matriz = [[0] * n for f in range(n)] for f in range(count): for c in range(low,high+1): matriz[f][c]=i i+=1 for c in range(low+1,high+1): matriz[c][high] = i i+=1 for c in range(high-1,low-1,-1): matriz[high][c]=i i+=1 for c in range (high-1,low,-1): matriz[c][low]=i i+=1 low+=1 high+=1
@mortifago25
@mortifago25 4 жыл бұрын
@@AmulsAcademy i just found the error. i did this high = high + 1 instead high =high-1 hehehe... Thank you! you are awesome!
@swetham7630
@swetham7630 4 жыл бұрын
What if it is not a square matrix, how to approach mam
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
You can create different matrix shape using list comprehension :)
@kanimozhisarathy8351
@kanimozhisarathy8351 3 жыл бұрын
U r great
@phanichandra2569
@phanichandra2569 4 жыл бұрын
can you please tell me name of the compiler
@bhoopendrajoshi80
@bhoopendrajoshi80 4 жыл бұрын
Mam it showing error l " List assignment index out of range "
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Please check the range in the for loop :) If possible give me the program i will check for you :)
@adeptabhi
@adeptabhi 4 жыл бұрын
thank you
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
You're welcome :)
@harshjain1906
@harshjain1906 4 жыл бұрын
Osm.......
@Adarsh.kashyap
@Adarsh.kashyap 5 жыл бұрын
can you do the same program in java
@hemantchauhan9294
@hemantchauhan9294 5 жыл бұрын
how can we do this for nxm matrix
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
You can take input like this: n = int(input("rows:")) m = int(input("cols:")) ar = [[0 for j in range(n)] for i in range(m)] for i in range(m): for j in range(n): print(ar[i][j],end=" ") print() :)
4 жыл бұрын
print without array
@yanwenchen1521
@yanwenchen1521 6 жыл бұрын
thanks so much!
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Welcome:)
@anuragpoddar6323
@anuragpoddar6323 4 жыл бұрын
I can't do that it only shows 0 at 1st place and 0 at rest all
@stranger2733
@stranger2733 3 жыл бұрын
Please give code in the description
@sergioabadquispecallisaya6917
@sergioabadquispecallisaya6917 4 жыл бұрын
it doesn't run in mine
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Why ? getting any error ?
@poojanair8488
@poojanair8488 4 жыл бұрын
Hello.. thanks for this wonderful video. Can you help me acquire the below pattern?? For N = 3 33333 32223 32123 32223 33333
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
I will try :)
@poojanair8488
@poojanair8488 4 жыл бұрын
@@AmulsAcademy okay
@vijay-mw4gx
@vijay-mw4gx 3 жыл бұрын
Tysm
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@vamshienaganti1438
@vamshienaganti1438 6 жыл бұрын
hai this code convert in java
@nithyashrees8226
@nithyashrees8226 6 жыл бұрын
Can I have program for 1 2 3 4 9 10 11 12 13 14 15 16 5 6 7 8
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
matrix = [[" " for x in range(4)] for y in range(4)] n=1 low=0 high=3 while low
@chauleminhminh4679
@chauleminhminh4679 4 жыл бұрын
i code exactly like you, and somehow it did not print all the latin square :))
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Give me the program i will check :)
@chahathbasha6118
@chahathbasha6118 2 жыл бұрын
@@AmulsAcademy a=int(input()) ar =[[0 for x in range(a)]for y in range(a)] n=1 low=0 high=n-1 count=int((a+1)/2) for i in range(count): for j in range(low,high+1): ar[i][j]=n n=n+1 for j in range(low+1,high+1): ar[j][high]=n n=n+1 for j in range(high-1,low-1,-1): ar[high][j]=n n=n+1 for j in range(high-1,low,-1): ar[j][low]=n n=n+1 low=low+1 high=high-1 for i in range(a): for j in range(a): print(ar[i][j],end="\t") print()
@kushaldas8496
@kushaldas8496 4 жыл бұрын
Mam please open a whatsApp group so that we can direct communicate with you
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
I will try :)
@haritasingh5390
@haritasingh5390 6 жыл бұрын
how can write 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
num = int(input("enter the number of rows:")) n = 1 matrix = [[0 for x in range(num)] for y in range(num)] for i in range(num): for j in range(num): matrix[i][j]=n n=n+1 i=0 j = num while i
@nandhinisubramani9273
@nandhinisubramani9273 3 жыл бұрын
@@AmulsAcademy u r too good. and thank u so much
@sreeramojusingamalai7472
@sreeramojusingamalai7472 2 жыл бұрын
1 2 3 4 17 18 19 20 5 6 7 14 15 16 8 9 12 13 10 11 please explain to print this pattern
@prakhardattu
@prakhardattu 5 жыл бұрын
Who are waiting to know calendar program in python by amuls.
@ndyyaa2281
@ndyyaa2281 5 жыл бұрын
num = int(input('enter number you rows want : ')) #input 6 here. nList = [[0 for x in range(num)] for y in range(num)] n=1 low = 0 high = num-1 count = int((num+5)/2) for i in range(count): for j in range (low, high+1): nList[i][j] = n n=n+1 ## for j in range(low+1, high+1): ## nList[j][high] = n ## n = n+1 ## for j in range(high-1, low-1, -1): ## nList[high][j] = n ## n=n+1 ## for j in range(high-1, low, -1): ## nList[j][low] = n ## n = n+1 ## low = low+1 ## high= high -1 for i in range(num): for j in range(num): print(nList[i][j], end ='\t') print() :)
@muthusamyk4616
@muthusamyk4616 4 жыл бұрын
H ki
@rhinoara7119
@rhinoara7119 4 жыл бұрын
Chel MAA chodla
@bhuktumurmu3746
@bhuktumurmu3746 5 жыл бұрын
1 23 456 23 1
@rishabsiyote2926
@rishabsiyote2926 Жыл бұрын
Can you do the same pattern but shape is different and you can’t use array and strings 10 2 3 4 9 1 5 8 6 7
@kousikpra1075
@kousikpra1075 6 ай бұрын
😂
@kousikpra1075
@kousikpra1075 6 ай бұрын
So difficult 😶
Python Tutorials - String Methods | translate() | maketrans()
16:26
Amulya's Academy
Рет қаралды 40 М.
Python pattern Programs - Printing Stars in Hollow Right Triangle Shape
19:43
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 22 МЛН
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 1 МЛН
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 8 М.
Pascal's Triangle | Python Pattern Programs
21:52
Amulya's Academy
Рет қаралды 94 М.
How to solve Square and Hollow pattern programs in Python
17:29
Simply Coding
Рет қаралды 96 М.
__new__ vs __init__ in Python
10:50
mCoding
Рет қаралды 210 М.
Nested Loops and Patterns in Python
14:23
Algovibes
Рет қаралды 20 М.