Python Number Pattern - Reverse Floyd's Triangle

  Рет қаралды 46,728

Amulya's Academy

Amulya's Academy

Күн бұрын

Пікірлер: 57
@nonoobott8602
@nonoobott8602 3 жыл бұрын
Great solution. Honestly, I've learned so much about python proramming concepts from your channel. As regards this, I have an alternative solution. So it's more like a quadratic sequence that follows the rule: (n^2/2 + n/2) where n defines each term from 1 all the way. So when n is 1, we have 1 and when n is 2, we have 3 which is a triangular series pattern. Hence this is my code: n = int(input('Enter a number : ')) c = int(0.5*n**2 + 0.5*n) for i in range(n): for j in range(i+1): print(format(c,"
@vharindrareddy
@vharindrareddy 3 жыл бұрын
When the pattern does not starts with one. We have subtract 1 from (0.5*n**2 + 0.5*n) and add to the desired starting number.Here is the code: n = int(input()) k = int(input()) a = int((k ** 2)*0.5 + 0.5*k) b = n + (a - 1) for i in range(0, k): j = 0 while j
@Crins0m_Carnage
@Crins0m_Carnage Жыл бұрын
Thank you so much Amuyla! I have been doing coding for 2 months now, and have been watching your tutorials. They have been very helpful. Thank you!
@Bread-vk8fl
@Bread-vk8fl 3 жыл бұрын
Thank you so much!! I'm getting to understand FOR loops much better with your videos.
@MDIMRAN-ze3rj
@MDIMRAN-ze3rj 3 жыл бұрын
Thank you so much, ma'am. I completed all pattern print tutorials. Please ma'am make a simple project tutorial for beginners to advance for 20-30 days. Again thank you so much.
@dineshkumark536
@dineshkumark536 3 жыл бұрын
Thank you so much. My placement season is going to start your videos are so helpful 😇
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
All the best 😊❤️
@Leo1994Ravi
@Leo1994Ravi 3 жыл бұрын
Her style of explanation is very nice😍😍
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@radhasree4u
@radhasree4u 3 жыл бұрын
@@AmulsAcademy madam pls reply to my comment, i aske you a question. please reply for that
@bhargavateja6375
@bhargavateja6375 3 жыл бұрын
Thanks You So Much Madam I Have Learnt Many Things By Watching Your Videos ❤️🥰😇
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@sivagssri
@sivagssri 2 жыл бұрын
Good tutorial for Python... Not sure why you have stopped your videos...
@satishnaidu1400
@satishnaidu1400 2 жыл бұрын
Please continue the series mam............i humble request you mam
@venkateshrasipuram4804
@venkateshrasipuram4804 3 жыл бұрын
Hi did you already posted video about heap sorting algorithm??
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
No 😊
@mukundborse6156
@mukundborse6156 3 жыл бұрын
Thank You so much for this videos.
@Universal_Dubbing_World
@Universal_Dubbing_World Жыл бұрын
Please do tell us hallow stars patter and hallow numbers.. Thank you
@bhargavimopuru8576
@bhargavimopuru8576 2 жыл бұрын
inputs are after 4 a b c d f e f g t e r r a b i j output wants to come as [(0,0),(1,0),(2,0),(2,1),(2,2)] different inputs are search 4 s e a c r c c c h e e e h e e e output wants to come as "no such word is there" how will do this in python pls explain
@ekumaresan2000
@ekumaresan2000 Жыл бұрын
Mam this video which is i and j pls explain mam
@ravindarreddy3619
@ravindarreddy3619 3 жыл бұрын
Hai Madam! could you explain what is "
@python2381
@python2381 3 жыл бұрын
hey bro i want one question and i want solution from you i have one arry like string ["4599"],["6625"],["7777"],["12345"],[7070] but i want print only this out put like this ["4599"],["6625"],["7777"] means i want print that string which string have same string last two or 1st and next if are same and or whole are same like in this arry ["7777"] how will sove this question
@familyvibes9707
@familyvibes9707 3 жыл бұрын
Which code playground do you use madam?
@abhiramveerastu8833
@abhiramveerastu8833 Жыл бұрын
thx madom pls make video for reverse alphabet program for loop
@lwy0802
@lwy0802 3 жыл бұрын
So good..
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@selvanm2872
@selvanm2872 3 жыл бұрын
thank you
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@kishanshetty9483
@kishanshetty9483 3 жыл бұрын
x = 15 for i in range(5): for j in range(i+1): print(format(x,"
@SHYAMSUNDAR-iv3uv
@SHYAMSUNDAR-iv3uv 3 жыл бұрын
Good evening mam. I kind request mam. Can you please help me to solve the problem on printing prime numbers in right triangle pattern
@ashwathsriramb4643
@ashwathsriramb4643 3 жыл бұрын
"
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
We are formatting number here, for more information check out the video on format function 😊
@VenkateshKking
@VenkateshKking 3 жыл бұрын
in format function y we using (m , "
@Mnbvcxz12349
@Mnbvcxz12349 2 жыл бұрын
What if if the initial value is 10 or 15 instead of 1
@nagalladileepsubramanyasai8317
@nagalladileepsubramanyasai8317 3 жыл бұрын
will u provide pdf for patterns pls
@balu90528
@balu90528 2 жыл бұрын
Good morning madam Just now try your method as you said But its not showing triangle Could you please help me madam
@jyotirmaytripathi3331
@jyotirmaytripathi3331 3 жыл бұрын
Thanks
@surendhar_s
@surendhar_s 3 жыл бұрын
Thankyou mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@p.b.pranav8247
@p.b.pranav8247 Жыл бұрын
Tq mam
@balu90528
@balu90528 2 жыл бұрын
Okay madam I got it
@balakrishnavaidyanathan8572
@balakrishnavaidyanathan8572 2 жыл бұрын
Amulyas academy any New program in offing
@ashmeetkaur5291
@ashmeetkaur5291 2 жыл бұрын
there is an easier way to do this program - ****************************************** p=15 for i in range (1,6): for j i range (1,i+1): print (format(p, "
@radhasree4u
@radhasree4u 3 жыл бұрын
madam pls explain the pattern 17 18 19 20 14 15 16 12 13 11 for n=4
@Itsmekriish
@Itsmekriish 3 жыл бұрын
Hi akka few days back nenu c programming gurinchi adiganu videos cheyamani gurtu unda edo okkati cheppandi plz akka meeru cheptanu ante wait chesta lekunte vere Vallavi Elagola artham chesukunta videos
@PriyankaGupta-hm7gt
@PriyankaGupta-hm7gt 2 жыл бұрын
When n=10 nd k(no of rows) is 5 then how can we print in reverse order
@Itsmekriish
@Itsmekriish 2 жыл бұрын
@@PriyankaGupta-hm7gteveryrow increase one place of number
@PriyankaGupta-hm7gt
@PriyankaGupta-hm7gt 2 жыл бұрын
@@Itsmekriish can you make program
@Itsmekriish
@Itsmekriish 2 жыл бұрын
@@PriyankaGupta-hm7gt which program
@srividya5720
@srividya5720 2 жыл бұрын
1 6 2 10 7. 3 13. 11 8. 4 15. 14. 12 9 5 Mam please do this program video requesting you
@VI-tb4jq
@VI-tb4jq 2 жыл бұрын
I think with an list this can easily be realised like: n = input() list = [0 for i in n] k=n list[0]=1 while n>0: for i in range(k): list[i] = list[i] +n if list[i] > 0: print(list[i], end=" " ) n=n-1 print(n) # not tested - only an idea
@srividya5720
@srividya5720 2 жыл бұрын
@@VI-tb4jq kk please test and let me know the correct output
@dileepkumarverma684
@dileepkumarverma684 2 жыл бұрын
Your voice is cute
@analystakash
@analystakash Жыл бұрын
24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 please explain this problm , im so confused
@Drv88
@Drv88 Жыл бұрын
for i in range (1,6): for j in range (1,i+1): print(j,end=" ") for j in range (2,7-i): print(" ",end=" ") for j in range (i,0,-1): print(j,end=" ") print() In this code, it's repeating 5 in the last row This is desired output 1 1 12 21 123 321 1234 4321 123454321 Can somebody help
@funfacts3059
@funfacts3059 2 жыл бұрын
Hii ma'am I have one problem How to print string like these using for loop Tk U h S a H p A R R E Help me out
DFS Recursive Function Working | Python Program | Data Structure
14:53
Amulya's Academy
Рет қаралды 13 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Python Program To Implement DFS Using Recursion | Data Structure
12:37
Amulya's Academy
Рет қаралды 28 М.
Graphs With Multiple Edges | Data Structure
6:05
Amulya's Academy
Рет қаралды 10 М.
DFS Implementation Using Stack Data Structure | Graph Traversal Algorithm
14:16
Graph Traversal Algorithm | DFS | Data Structure
9:12
Amulya's Academy
Рет қаралды 16 М.
Graph Traversal Algorithm | Depth First Search | Data Structure | Part 2
6:36
Python Programming Tutorials - Part 1 | Basic Concepts | For Beginners
42:37
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН