I don't know your age but the way you teaching was with full of clarity and even non IT can also learn this python through your teaching but my request make some videos about complex programs of using combinations of if, for , while and also tkinter kindly
n = 5 result= 1 for i in range(n, 0, -1): result *= i print('the factorial of', n, 'is', result) alternative method: n = 5 result= 1 for i in range(1, n + 1): result *= i print('the factorial of', n, 'is', result) Why does (n, 0, -1) work the way it does? I find (1, n + 1) slightly easier to understand. It begins at 1, then to stop the loop you do n+1. Fantastic video btw. Please keep making them. You are brilliant. I just subscribed.
Really Helpful.Thanks A lot.I had confusion about factorial program but from this video I completed my clearance . while True : print("I loves Amulya's Academy ") Happy Coding ;)
Amulya a kind request - can you also please start making videos for javascript programme along with python. Javascript is also widely used and I am sure lot of people out there are looking for programming way of explaining just like you do in python. I will be so greatful for you if you can start javascript tutorial and programs as well. Thank you very much. ❤️
hiii mam i am came again shall i say one thing....every program...in python...i will search like.....the program name with amul acedemy in youtube search....lv u mam...u r like mentor
I've just learned the basics of python and im solving some basic questions. Can you tell me shall start learning dsa or I should wait and solve more python problems to start it🤔 Please reply it will be very helpful to me.
i'm confusing from last one year i have completed my data science course but programming concept is not clear yet. Now my searching is over i'll not miss any videos please upload some more videos for python.
Hey, I love the video and I now understand it better but do you know how to make it so it only gives a factorial of numbers in a set range?? I need it to be between 1 and 25 but I don't know how to get the range set without it running through every single number, thank you for any help :] have a good day
No it will works till 1. we took step as -1 so values will be in the reverse order. if n=5 then range(n,0,-1) means range(5,0,-1) = 5 4 3 2 1 0 is excluded. :)
Hello Amulya, I have doubt, num=0 result=1 if i in range(num,0,-1): #(0,0,-1)#i=0 result=result*i #1=1*0=0 print (result) #ans=0#how it get output 1 Can you clarify me above concept for given input as 0 Thanks in advance
if i in range(num,0,-1): #(0,0,-1)#i=0 I think it is not if , you are using for loop. and when range() starts from 0 and ends 0 it won't take i as 0, actually it won't give any value because end value is exclusive. So it won't execute for loop body. it will print the result, that's why you will get result as 1. if you want result as 1 then you can write like this: for i in range(num,-1,-1): #(0,-1,-1)#i=0
In range function when we use range(n,0,-1) means start is n end is 0. for example if n=5 range(5,0,-1) = 5,4,3,2,1 But range(1,n+1) is different. Here start is 1 and end is n+1. for example n=5 range(1,6) = 1,2,3,4,5
Because to get factorial of number we need to do multiplication. result is the variable which will hold my final result. If i take 0 , 0 multiply anything will be 0, that's why i took 1. value 1 won't change any output, because if you multiply any value with 1 answer remains same :)
Hi! Can you please make a video on the question: If a list in python has mix of strings & numbers, how will you make separate lists of strings & numbers? I saw ord() for getting ASCII code in python & chr() for converting ASCII codes to characters somewhere & tried to use them to get answer of this question but it did not work!! :(
😙😙 DIDI your way of " explanation" and "voice " is very sweet and awesome....... 🙋 KEEP IT UP......THANKS FOR UPLOADING SUCH GREAT VIDEOS..... WANT YOUR HELP...........
finally, someone explains it in details. I struggled a lot trying to understand it. Keep up the good work
Thank you :)
it's simple it goes back to for loop when the there is no more list it will return the list
Hlo explain how find given number s factorial or not
Example 24=4!
Same here💯💯
Hh
I was trying to understand from previous two days to understand in detail, finally my search is over and got a perfect explanation. Big THANK YOU : )
Pleasure 😊
You are THE best python teacher on YT. Thanks from New York!
I came here after watching so many videos which goes over my head.. finally the way you explain in detail clear my concept.. thank you so much 🙏
Thank you ma'am.. this explanation is truly a gem. I was trying to learn this for a week.
You are definitely a good teacher 👏🏽👏🏽👏🏽👏🏽I need more classes so I had to follow you
I don't know your age but the way you teaching was with full of clarity and even non IT can also learn this python through your teaching but my request make some videos about complex programs of using combinations of if, for , while and also tkinter kindly
Sure:)
Thanks Amulya for this amazing explanation!!!
Pleasure 😊❤️
n = 5
result= 1
for i in range(n, 0, -1):
result *= i
print('the factorial of', n, 'is', result)
alternative method:
n = 5
result= 1
for i in range(1, n + 1):
result *= i
print('the factorial of', n, 'is', result)
Why does (n, 0, -1) work the way it does? I find (1, n + 1) slightly easier to understand. It begins at 1, then to stop the loop you do n+1.
Fantastic video btw. Please keep making them. You are brilliant. I just subscribed.
range(n,0,-1) will give output 5 4 3 2 1 😊
@@AmulsAcademy how can I print for example 1×2×3×4=24
Neat Yar amul baby😊😘 loved it
Explanation is depth enough.Sooo Good😃
Thank you :)
Thank you So Much😄 You have Great Teaching Skill😇
Thank you! 😃
Amulya u are on the next level girl u explain so easily . Keep growing
Thank you so much :)
Your explanation is very clear. Thank you so much
Glad it was helpful!
Thank you very much madam🙏🙏🙏your way of explanation is very nice....
.madam
You at the best python teacher
Really Helpful.Thanks A lot.I had confusion about factorial program but from this video I completed my clearance .
while True :
print("I loves Amulya's Academy ")
Happy Coding ;)
Thank you :)
Thank you so much and Lots of gratitude for your way of explanation
Awesome, Thank you. Now my doubt was cleared after saw your video :)
Glad to hear that :)
Simple and effective explanation mam ❤
Glad you liked it :)
Thanks, i was just struggle answering my question and after i found this, i'm now ok with it.
Glad to hear that 😊
@@AmulsAcademy tq😁
😊
Amulya a kind request - can you also please start making videos for javascript programme along with python. Javascript is also widely used and I am sure lot of people out there are looking for programming way of explaining just like you do in python. I will be so greatful for you if you can start javascript tutorial and programs as well. Thank you very much. ❤️
I will try :)
Excellent explanation this question asked in capgemini interview
great the way you teach is very good and every thing is clear
Glad to hear that :)
Nice explaination mam after a long time i got your channel
Welcome :)
Wonderful teaching ✨🙏 but I saw one of the they mentioned num+1 in range like
num=7
f=1
For i in range(1, num+1):
f=f*1
Print (f)
thank you from Algeria ! good job :)
Thank you :)
Thanks a lot maam…….. I finally understood the full logic
step by step clearly explain.....thnks u
You are doing great job
Thank you so much 😀
Very good explain,, thank u so much,.. ❤
Tq for your beautiful explanation❤
Your explanation is awesome.
explanations of the exact happenings in for loop helped us understand this function
thank you you explained it in the best way
Glad to hear that 😊
your voice very good and anle to understand
Very good explanation 👍👌
Thank you :)
Thank you so much for your help and knowledge on the subject. I was really struggling.
My Pleasure :)
hiii mam i am came again shall i say one thing....every program...in python...i will search like.....the program name with amul acedemy in youtube search....lv u mam...u r like mentor
Thank you so much :)
Nice vedio and explanation was very clear
Really awesome explained it's easy to understand please upload full python tutorial pin to pin explain 🤗
Like ur teaching 🔥🔥🔥
Glad to hear that :)
finally i have got my computer science tutor
Welcome :)
Thnkuuuuu sooo much....... 🐨🐨
You are doing a fantastic job. Keep it up.
Thank you:)
Really, very helpful channel and the explanation and content is awesome....😊👍
Thanks a lot 😊
I've just learned the basics of python and im solving some basic questions. Can you tell me shall start learning dsa or I should wait and solve more python problems to start it🤔
Please reply it will be very helpful to me.
Really you are a great teacher/trainer. thank you so much. if you conducting a learning institution please let me know.
Thank you, I will :)
Super explanation kya kaa
1st thank u for ur video its simple nd easy to understand
can you make a factorial program using while loop
This may help you:
num = int(input("enter the number: "))
res = 1
i = 1
while i
Great explanations. I was looking for it
Glad it was helpful! :)
Good work..
Thank you for your help
Pleasure :)
thank you so much u saved me i was unable to understand this program
Very helpful mam
Thank you :)
Thank you so much🙏
awesome tutorial
Thank you :)
Thank u mam for such a nice video but can u plz do this factorial problem using while lopp
Thank you:)
using while loop:
num = int(input("enter the positive integer:"))
result = 1
i=1
while i
@@AmulsAcademy thank you mam😊
Mam can do Qns like write a menu driven program to print truth table of following logic gates AND,OR,NOT
I will try :)
Thank you 🙏
You’re welcome 😊
I'm getting 1as output for factorial of 5
what to do
Thank you!
Great video
Thank you :)
why do we write (-1) in the range?
i'm confusing from last one year i have completed my data science course but programming concept is not clear yet. Now my searching is over i'll not miss any videos please upload some more videos for python.
Hey, I love the video and I now understand it better but do you know how to make it so it only gives a factorial of numbers in a set range?? I need it to be between 1 and 25 but I don't know how to get the range set without it running through every single number, thank you for any help :] have a good day
Thank you mam
Here we can take range as (1,n+1)?
Yes You can :)
good explanation
Thank you :)
3:45 y take stop arg. as 0......it works till " stop-1" so taking it 0 doesn't mean the loop will run till 0-1= -1 ?!?!
No it will works till 1.
we took step as -1 so values will be in the reverse order.
if n=5
then range(n,0,-1)
means range(5,0,-1) = 5 4 3 2 1
0 is excluded.
:)
If take n = 0 then what will happens..how works plz tell me...0*1=0
so helpful
Glad it was helpful!
understandable 👌
The helps me alot
your voice is really good
Thank you :)
Thank You Honestly ❤
Hello Amulya,
I have doubt,
num=0
result=1
if i in range(num,0,-1): #(0,0,-1)#i=0
result=result*i #1=1*0=0
print (result) #ans=0#how it get output 1
Can you clarify me above concept for given input as 0
Thanks in advance
if i in range(num,0,-1): #(0,0,-1)#i=0
I think it is not if , you are using for loop.
and when range() starts from 0 and ends 0 it won't take i as 0, actually it won't give any value because end value is exclusive.
So it won't execute for loop body.
it will print the result, that's why you will get result as 1.
if you want result as 1 then you can write like this:
for i in range(num,-1,-1): #(0,-1,-1)#i=0
@@AmulsAcademy Thank you :)
Your voice is nice
Thank you :)
The Best
Instead of using (n,0,-1)..we can use (1,n+1) ryt mam?
In range function when we use range(n,0,-1) means start is n end is 0.
for example if n=5 range(5,0,-1) = 5,4,3,2,1
But range(1,n+1) is different. Here start is 1 and end is n+1.
for example n=5 range(1,6) = 1,2,3,4,5
Really mam your voice is very beautiful like cackoo
And when we have to print like 5×4×3×2×1=120 what we have to do
Why did you take result=1 ?
Could please tell me Amulya
Because to get factorial of number we need to do multiplication.
result is the variable which will hold my final result.
If i take 0 , 0 multiply anything will be 0, that's why i took 1.
value 1 won't change any output, because if you multiply any value with 1 answer remains same
:)
Amuls Academy Thank you so much Amulya 😊
You are really doing great job 😊
Thank you :)
thanks a lot
Why zero is taken range function, in this program, how it is used.
Ma'am in my PC it shows errror in the 2nd line
Double check your indentation. It could be the issue. Plus what error message are you getting?
thank you
Your voice is...beautiful... 😅
Thank you 😊
Madam why we used the -1 in for loop
Hi! Can you please make a video on the question: If a list in python has mix of strings & numbers, how will you make separate lists of strings & numbers? I saw ord() for getting ASCII code in python & chr() for converting ASCII codes to characters somewhere & tried to use them to get answer of this question but it did not work!! :(
Mam what if n=0 in this case?
thank u mam
Your python mergesort shellsort are very to learn
Thanks
Welcome:)
thank u
Welcome :)
great didi
Thank you:)
Pls pls pls do a video on GCD IN PYTHON
sure:)
Amuls Academy
When will you do it
Maybe in next week:)
Amuls Academy
Ok cool
😙😙 DIDI your way of " explanation" and "voice " is very sweet and awesome.......
🙋 KEEP IT UP......THANKS FOR UPLOADING SUCH GREAT VIDEOS.....
WANT YOUR HELP...........
If we provide input=0,, result=1*0,, so it print output 0., but 0 factorial =1..how it??
Can u make this program using while loop.
n = int(input("Enter the number: "))
result = 1
while i > 0:
result = result * i
i = i - 1
print("Factorial of",n,"is",result)
tysm....♥️