Python Program to Calculate Factorial of a Number | Factorial Program in Python | Python Programs

preview_player
Показать описание
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:-

♥️ Thank You ♥️

#FactorialProgramInPython #Python #PythonProgramming
Рекомендации по теме
Комментарии
Автор

thank you so much sir yeh book se padhne pe bilkul samajh nahi aya tha ki while loop k baad kya ho raha tha

supersaiyan
Автор

sir app bahut ache ho ab ka javab nahiii

ManojKumar-hzod
Автор

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)

manojvijyant
Автор

a++ is not valid in python…what a rubbish lecture

rajaryan