U r a great teacher, keep doing good work. i've a question or doubt regarding a basic print statement. numlist=[1,2,3,4,5] for i in numlist: print(i) # printing starts from value1 print(numlist[i]) #printing starts from # value 2 plz help me to understand why print(numlist[i]) starting from 2( index value 1)..
Hey, for i in numlist: i value will be the elements of numlist. initially i = 1 {The first value of numlist} so when you write print(i) It will print elements of numlist one by one. But if you write print(numlist[i]) here you are accessing the list elements using indexing and here you took index as i. what is i ?? i is the elements of numlist the first element of numlist is 1, so it will print numlist[1] that is 2. Because in the list index starts from 0. NOTE: Instead of [1,2,3,4,5] if you had different values in the list you will get error. for example [10,20,30,40,50] :)
Hey, your videos our helping me alot and and iam sharing it with my friends in learning group who are from different states of india. Please keep posting. Wanted to know your name? Is it amulya or amul?
Mam, I have one request for you. You have done many programs for begginners to built coding skills. Can you suggest any website to start competitive programming. And also how to start competitive programming : ) Please please a request from me. It will also help your subscribers : )
y u chosen this logic????🤔🤔🤔🤔instead of this u can try with a ncr formula for every element....and with the recursion concept it will be easier.... n = int(input("enter the number of rows:")) def fact(i): if i==0 or i==1: return 1 return i*fact(i-1) def formula(i,j): return fact(i)//(fact(i-j)*fact(j)) for i in range(n): print(" "*(n-i-1),end="") for j in range(i+1): print(str(formula(i,j))+str(" "),end="") print()
amazing explanation i never see a video like this explanation before
Спасибо, девушка. Весьма помогли в понимании этого процесса.
Perfect explanation mam....
Thank you :)
U r a great teacher, keep doing good work. i've a question or doubt regarding a basic print statement.
numlist=[1,2,3,4,5]
for i in numlist:
print(i) # printing starts from value1
print(numlist[i]) #printing starts from # value 2
plz help me to understand why print(numlist[i]) starting from 2( index value 1)..
Hey,
for i in numlist:
i value will be the elements of numlist. initially i = 1 {The first value of numlist}
so when you write
print(i)
It will print elements of numlist one by one.
But if you write
print(numlist[i])
here you are accessing the list elements using indexing and here you took index as i.
what is i ?? i is the elements of numlist
the first element of numlist is 1, so it will print
numlist[1]
that is 2.
Because in the list index starts from 0.
NOTE: Instead of [1,2,3,4,5] if you had different values in the list you will get error.
for example [10,20,30,40,50]
:)
@@AmulsAcademy for small query solution high....great to read😎😎😎😎
Thanks for this ma'am
Most welcome 😊
Thanks for this!
My pleasure! :)
Muy eficiente la explicación del ejercicio, lo entendí aunque no hablo tu idioma., Gracias
Hey, your videos our helping me alot and and iam sharing it with my friends in learning group who are from different states of india.
Please keep posting.
Wanted to know your name? Is it amulya or amul?
Thank you so much :)
My name is Amulya :)
Mam, please create a separate playlist of Python Data Structures
Sure :)
hi please start a series on Project Euler web site problems
Mam, I have one request for you.
You have done many programs for begginners to built coding skills.
Can you suggest any website to start competitive programming.
And also how to start competitive programming
: )
Please please a request from me.
It will also help your subscribers : )
Mam Can you make a QnA about yourself. If u r comfortable about it
Will try 😊
Mam pygame me mouse click option ka use kasie karte hai
What’s the complexity ?
Thanks a lot
Most welcome :)
Thanks.
You're welcome :)
y u chosen this logic????🤔🤔🤔🤔instead of this u can try with a ncr formula for every element....and with the recursion concept it will be easier....
n = int(input("enter the number of rows:"))
def fact(i):
if i==0 or i==1:
return 1
return i*fact(i-1)
def formula(i,j):
return fact(i)//(fact(i-j)*fact(j))
for i in range(n):
print(" "*(n-i-1),end="")
for j in range(i+1):
print(str(formula(i,j))+str(" "),end="")
print()
hello. Is it okay if I use this code?
if possible, can you help with Ukraine symbol trident?
I will try :)
👍
I can't understand 😞😞😞😞😞😮
Hi