for i in range(n): you=[*str(11**i)] for k in range(n,i+1,-1): print(" ",end="") for item in you: print(item,end=" ") print() more Easy Way To Do This Problem
I did not understand the fist time I looked but I looked three times finally I got it . Thanks you so much. using this the concept I solved 15 question in project eluer.
Thanks Amulya for uploading Pascal's triangle based on my request. Much easier to understand and your videos makes the subject even more interesting : -)
@@AmulsAcademy n = int(input("enter no of rows:")) list1 = [] for i in range(n): list2 = [] for j in range(i+1): if j == 0 or j == i: list2.append(1) else: list2.append(list1[i-1][j] + list1[i-1][j-1]) list1.append(list2) print(list1) This is I wrote mam and in line no. 9 its giving error:IndexError: list index out of range and a warning sign also says: Name 'j' can be undefined
@@AmulsAcademy row=int(input("Enter number of rows: ")) num=[] for i in range(row): temp=[] for j in range(i+1): if j==0 or j==1: temp.append(1) else: temp.append(num[i-1][j-1] + num[i-1][j]) num.append(temp) for i in range (row): for j in range(row-i-1): print(" ",end="") for j in range(i+1): print(num[i][j],end="") print()
Your logic is easy but it's showing an out of range error , I wonder how you are getting the output successfully and I am getting an error running the same code 🤔
n = int(input()) list1 = [] for i in range(n): temp_list = [] for j in range(i+1): if j == 0 or j == i: temp_list.append(1) else: temp_list.append(list1[i-1][j-1] + list1[i-1][j]) print(list1) IndexError: list index out of range
The way you explain each and every single thing is superb!!
Thank you very much... Best explanation I have seen on this pattern printing available on youtube
Glad it was helpful!
Some times i watching your video repeatedly for your voice ❤❤...
"Nothing but" confused me a lot. Nothing but finally i got it 😂🙏
hehe a bad habit, i will try to control it sorry :)
😂😂😂😂😂😂
Mam your explanation has perfection and excellent understanding for the audience....... and best thing you have your own style....👍👍
Thanks a lot 😊
beautiful explanation, thank you for explaining in simple and brief manner
You are very good teacher helps me to clear all dbts
Thank you :)
Never been glad to find a video; you made hours of research worthwhile. Thank you a lot!!!
This video is nothing but perfect
Thanks for your explanation! But for n = 0 or n = 1 it is necessary that the cycle be up to n + 1: for i in range(n + 1)
I'm getting an error as list index out of range..can you pls help
Спасибо тебе большое, видео получилось замечательным! ❤
심화모둠 때 혼자서 파이썬을 공부해야 해서 난관을 겪고 있었는데, 자세하게 설명해주셔서 덕분에 좋은 결과물이 나온 것 같습니다 감사합니다!
your video is nothing but increddible!!
Thank you 😊
you are a god in programming;
Thank you so much👍😀
Thanks, it was useful. Your logics and explanations are best!.
You're welcome!
Wow.... how did you learn how to dissect programming tasks like this. You are wonderful!!!
for i in range(n):
you=[*str(11**i)]
for k in range(n,i+1,-1):
print(" ",end="")
for item in you:
print(item,end=" ")
print()
more Easy Way To Do This Problem
omg ur tutorials are best 💓
Thank you so much 😀
Mam can u plz make Videos on phyton algorithms such as greedy algorithm, Dijkstra's etc please mam
explained very beautifully, Thank you.
Glad it was helpful!
thank u and your coding skill is very impresive
Congrats! You just got a new subscriber.
Welcome :)
Thank you soooo much, I had a hard time understanding this but your video gave me the clearest explanation and I finally understood this fully.
Glad it helped!
I did not understand the fist time I looked but I looked three times finally I got it . Thanks you so much. using this the concept I solved 15 question in project eluer.
Great 😊👍
Thanks Amulya for uploading Pascal's triangle based on my request. Much easier to understand and your videos makes the subject even more interesting : -)
You are welcome 😊
Thank you! That was very helpful
Thank you a lot mam.. you explanation is just great !!
Most welcome! :)
The immediate change i observed is nothing but Amulya's instead of Amuls ...😃
Yes Channel name is Changed :)
Thank you so much for the wonderful video explaining so well
Welcome :)
excellent explanation..👍👍
Bt.. Mam your english speaking is so cute... Mam i love your voice.. Uff just I love it ❤❤
woah, chill 😂
Well explained concept Amulya. Thanks for sharing!
My pleasure 😊
Thank you mam. Awesome
Just AMAZING 🤠❤️
Thank you :)
Amazing explanation
Thank you very much! Everything is clear!
Thnx ma'am .....best explanation 👍👍👍👍
Most welcome 😊
Thanks, it helped.
Ur the best
Thank you 😊
Thanks! But your code have a little problem: in second cycle you need add a check "if i == 0 or j == 0 or j == i", otherwise there will be an error
Nice i love your videos.......
Thank you so much 😀
Can these questions be included in basics of DSA?
It helps me a lot mam thank you
Glad to hear that😊
Mam but it's giving error: List out of range how can I solve it mam I can't able to understand if possible please reply mam
Give me the program 😊
@@AmulsAcademy n = int(input("enter no of rows:"))
list1 = []
for i in range(n):
list2 = []
for j in range(i+1):
if j == 0 or j == i:
list2.append(1)
else:
list2.append(list1[i-1][j] + list1[i-1][j-1])
list1.append(list2)
print(list1)
This is I wrote mam and in line no. 9 its giving error:IndexError: list index out of range and a warning sign also says: Name 'j' can be undefined
Awww! Love your voice
Thank you so much!
Hi Amulya miss , you taught in a very clear way.
Thanks a lot :)
Thank you!
Thank you very much!!! 🧡
Pleasure 😊
This isn't working, showing list index out of range in else statement
Give me the program i will check :)
For me also
For Me Also
same
@@AmulsAcademy row=int(input("Enter number of rows: "))
num=[]
for i in range(row):
temp=[]
for j in range(i+1):
if j==0 or j==1:
temp.append(1)
else:
temp.append(num[i-1][j-1] + num[i-1][j])
num.append(temp)
for i in range (row):
for j in range(row-i-1):
print(" ",end="")
for j in range(i+1):
print(num[i][j],end="")
print()
Great video. Very concise!
Thank you :)
Thank you so much 🙂
Excellent work 🤯
Keep doing 👏
Most welcome 😊
thank you so much. very good explanation!
Glad it was helpful! :)
mam matplotlib package tutorial has been completed or not.
No :)
wonderfully explained 🙏
Thank you 😊
Super madam😌😌
Thank you :)
Amazing explanation! Thank you!
Your logic is easy but it's showing an out of range error , I wonder how you are getting the output successfully and I am getting an error running the same code 🤔
The code has an error actually, it is one step ahead. The triangle starts from the zero step which is not considered in the code.
Thnku didi
Спасибо большое, разобрался с задачей!!!!
Mam, It's giving me an error of list out of range. Could you please help me?
Same here
Thank you, very best explanations...
thank u mam
THANQ SO MUCH
My Pleasure :)
Very helpful, thank you
Glad it was helpful! :)
Сделайте доступными субтитры, интересно смотреть картинку и код, но хочется послушать и объяснение. MAKE SUBTITLES PLS!!!
In Italy we call it Tartaglia's triangle
n = int(input())
list1 = []
for i in range(n):
temp_list = []
for j in range(i+1):
if j == 0 or j == i:
temp_list.append(1)
else:
temp_list.append(list1[i-1][j-1] + list1[i-1][j])
print(list1)
IndexError: list index out of range
sorry, my mistake
i also get this.how you solve this?
help me please
Though there is only one difference you are using python 3.8.6 and I am using python 3.10.6 ....
thank you :))
Pleasure :)
@@AmulsAcademy you are the best :))
@@AmulsAcademy from Algeria !
data is not getting strored properly can anyone help me out
Where are you from?
Karnataka India :)
Mam are you rgukt student???
NO :)
Excelente
Thank you :)
@Amulya's Academy R u a South Indian?? Kannadiga???
I want to join python class
Hello ma'am or miss can u plz made playlist for class 12 cbse base on syllabus plz
I will try :)
Amulya sister could you make a video about tkinter and pygame in python..my request pls❤
Doesn't work for me... :/
Give me the program i will make it work for you : )
i guess you could have done this way too easy then this
next time you could copy de code in the description or in the comments
I will try :)
too long but helpful thanks a lot
The entire program is nothing BUT pascal's triangle program.
thanks
Mam how to print when we want to print this Pascal triangle in reverse order
in terms of shape?
this is 'NOTHING BUT' easy 🤣🤣🤣
thank you mam i am a huse fan of you but im confused you are a mam or sir...?
Thank you :)
I am a girl :)
You can call me amulya.
@@AmulsAcademy yeah i like your voice ❣️aap is nothing but is nothing but bhut use krti h😃
does that sound like a man? lol
please help me
nothing but... :D
Thank you, cute girl
ничего не понял, что говорит, но мне помогло)))
Worst explanation
Thank you!