Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
def factorial(num): fact = 1 for i in range(1, num+1): fact *= i return factprint(factorial(5))
factorial=1num= 5if num
Thank u sir i'm studying 12th std and tommarow is my semminar about this topic and this is soo helpful
#%% factorialnum = int(input("your number is "))fact = 0for x in range(1,num): fact = fact + 1 num = fact * num print(num)
adding " if num
Factorial of a number.num=-1i=0if num
This is useful and easy
def factorial(num): if num < 2: return num return num * factorial(num-1)print(factorial(5))
Hi, if I want to have factorial for more numbers (3,4,5,..) how do I write the list of all numbers? THank you.
Tq sir
Welcome
In recursive method there is no statement for when we input negative numbers.
Tnk u sir ❤
Most welcome
where can I find the all of these questions.
Very helpful! Thanks!
You're welcome!
Thank you sir
good
thankelu velimach
def factorial(num):
fact = 1
for i in range(1, num+1):
fact *= i
return fact
print(factorial(5))
factorial=1
num= 5
if num
Thank u sir i'm studying 12th std and tommarow is my semminar about this topic and this is soo helpful
#%% factorial
num = int(input("your number is "))
fact = 0
for x in range(1,num):
fact = fact + 1
num = fact * num
print(num)
adding " if num
Factorial of a number.
num=-1
i=0
if num
This is useful and easy
def factorial(num):
if num < 2:
return num
return num * factorial(num-1)
print(factorial(5))
Hi, if I want to have factorial for more numbers (3,4,5,..) how do I write the list of all numbers? THank you.
Tq sir
Welcome
In recursive method there is no statement for when we input negative numbers.
Tnk u sir ❤
Most welcome
where can I find the all of these questions.
Very helpful! Thanks!
You're welcome!
Thank you sir
Welcome
good
thankelu velimach