Python Program to Calculate Factorial of a Number | Factorial Program in Python | Python Programs
ฝัง
- เผยแพร่เมื่อ 3 ต.ค. 2024
- Python Program to Calculate Factorial Of Number | Factorial Program in Python | Python Programs #16
In This Tutorial, We will learn a Python Program to Calculate the Factorial Number.
🔔 Support Us by SUBSCRIBING. And Please Like, Comment & Share our Tutorials 🔔
~Contact us:-
►Subscribe: bit.ly/wscubech...
► Facebook : / wscubetech.india
► Twitter : / wscube
► Instagram : / wscubetechindia
► LinkedIn : / wscube-tech
► TH-cam : / wscubetechjodhpur
► Website: wscubetech.com
♥️ Thank You ♥️
#FactorialProgramInPython #Python #PythonProgramming
Sir you saved my cs exam
Very helpful
thank you so much sir yeh book se padhne pe bilkul samajh nahi aya tha ki while loop k baad kya ho raha tha
Very nice explanation ❤
Excellent explained
Very good explanation ❤️
Thanks sir
Well explained.
def factorial(num):
if num == 0:
return 1
else:
return num * factorial(num-1)
num = int(input("Enter a number: "))
print("Factorial of",🚁 num, "is", factorial(num))
Sir could u explain me this line that how does it work
return num * factorial(num-1)
It work like if you take no. 4 than
4*(3!) like thiss
a++ is not valid in python…what a rubbish lecture