ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Python Program to Find the Factorial of a Number Tutorial
ฝัง
- เผยแพร่เมื่อ 21 ส.ค. 2020
- In this Tutorial you will learn to write a Python Program to find the factorial of a number using Iterative Method ( for loop ).
The factorial of a positive integer n, which is denoted as n!, is the product of all positive integers less than or equal to n.
That is n! = n * (n-1)*(n-2)*....*3*2*1
So 4! = 4 * 3 * 2 * 1 which is equal to 24.
Factorial for the numbers 0 and 1 is 1. That is 0! = 1 and 1! = 1.
For negative numbers factorial value doesn't exists.
our Social Media Pages
/ exampleprogram
/ exampleprogram
/ example_program
Our Website
www.ExamplePro...
#ExampleProgram
I love your explanation. Most videos I've come across do not explain this thoroughly. keep it up!
Thank you :)
I like the use of range function in the context of factorial. Very nice job!
Thanks!
You explained this very well, thanks!
You're very welcome!
You got new subscriber :) cheers
Welcome aboard!
Best Explaination till now in TH-cam!!1❤😍
Thank you so much 😀
I really enjoyed the way you explained the concept of factorial. dont you mind creating a python playlist where u will be doing similar task. I could learn a lot from you.
i have plans to create complete video series.
lets see :)
clear and the best explanation in the TH-cam. Thank you.
Pleasure 🙏
such a very clear and easy to understand video. Thank you
You're very welcome!
This channel is so underrated!
Share!
Thank you
Awesomely done and explained! Well done brother
Thanks for watching
loved your explanation I was literally searching for an explanation for the factorial. Couldn't get any clearer.
Glad it was helpful!
I liked the latter part. Keep it coming
👍
Good explanation of factorials. Thanks.
You are welcome!
so precise! thank you
You're so welcome!
helped much
glad my video helped you :)
Bruh! your are good at explaning codes
Glad you think so!
Best explanation... Thank u
You are welcome
Thank you
Pleasure :)
Well understandable 🤩🤩🤩
thanks :)
Sir, where would u put the exit statement if i want to execute this program again n again until the user wans to exit the program.
number=int(input("Enter a number:"))
factorial=1
if (number < 0):
print("cant compute factorial of negative number")
elif (number
u have made a mistake as you have to multiply factorial with "num" not number, that's why u r getting 64 instead of 24
thanks you very much really helpul 😊
You're welcome!
nice video man
thank you :)
Which version of python is this?
Hello, what software do you use to draw/write numbers with highletrs? You used it in this video.😀🤩
windows snip and sketch
Thanks, a very good explanation step by step.
How to make this as application in GUI Tkinter
hey how can i donate?