Find the Factorial of a Number - Python Program Tutorial🔥

  Рет қаралды 67,339

WsCube Tech

WsCube Tech

Күн бұрын

Пікірлер: 42
@wscubetech
@wscubetech 2 жыл бұрын
😎Hey, thanks for watching! We’d love to know your thoughts/doubts here in the comments. 👉For professional self-paced certification courses (pre-recorded), visit: bit.ly/Pre-Recorded-Course 👉Don’t forget to SUBSCRIBE to our channel for more such videos & valuable content: bit.ly/KZbin-WsCubeTech
@OjasAgarwal-ou8wk
@OjasAgarwal-ou8wk Жыл бұрын
a=int(input("enter a number")) For x in range(a-1, 0,-1) : a=a*x Print(a)
@krish868
@krish868 4 ай бұрын
a=int(input("enter a number")) import math print(math.factorial(a))
@friend5242
@friend5242 7 ай бұрын
def factorial(a): return 1 if a==1 or a==0 else a*factorial(a-1) print(factorial(4))
@abhijeetsinghyadav8988
@abhijeetsinghyadav8988 8 ай бұрын
def fact(a): f=1 for i in range(1,a+1): f=f*i return f a = int(input("enter a number:")) factorial = fact(a) print("the factorial of the given number is",factorial)
@yatin_
@yatin_ 10 ай бұрын
ma'am you are just fantastic...
@AkashShukla007
@AkashShukla007 2 жыл бұрын
In every video what a great explanation. Thank you very much ma'am. You helped a lot🙂.
@dkscare2908
@dkscare2908 2 жыл бұрын
thanks a lot mam for your help watching your videos one day before my exame which helps a lot
@PythonProjectSolver
@PythonProjectSolver 11 ай бұрын
num = int(input("Enter the number : ")) F = 1 if num < 0: print("This is not a Valid Input") while num >= 1: F *= num num -= 1 print("The Factorial is",F)
@rishiraj2548
@rishiraj2548 Жыл бұрын
Thanks for teaching all these algorithms and Python language.
@Anshmajumdar
@Anshmajumdar Жыл бұрын
Mam It looks like you have some syntax errors in your code. Here's a corrected version: ```python num = int(input("Enter your number: ")) fact = 1 if num < 0: print("Factorial of a negative number does not exist") elif num == 0: print("Factorial of 0 is 1") else: for i in range(1, num + 1): fact = fact * i print("Factorial of the given number is", fact) ``` I've fixed the indentation, added `elif` to handle the case when `num` is zero, and corrected the loop syntax. This code should work as intended.
@rawatbobby8883
@rawatbobby8883 Жыл бұрын
thanks brother its help me a lot
@PythonProjectSolver
@PythonProjectSolver 11 ай бұрын
num = int(input("Enter the number : ")) F = 1 if num < 0: print("This is not a Valid Input") while num >= 1: F *= num num -= 1 print("The Factorial is",F)
@sushantchougale6818
@sushantchougale6818 2 жыл бұрын
Thank you Madam 😊 🙏
@Abdul-708
@Abdul-708 11 ай бұрын
Spr ma'am
@defenceloverupadhyay9659
@defenceloverupadhyay9659 Жыл бұрын
Thanks mam me Bahut mughe for loop samajh nahin aa rha tha what h great explanation mam
@AshishTomar-rk6il
@AshishTomar-rk6il 6 ай бұрын
Import math integer = input("Enter the integer":) factorial_integer = math.factorial(integer) Print(factorial_integer)
@anirudhpratapsingh2698
@anirudhpratapsingh2698 Жыл бұрын
a=int(input('enter the number')) t=1 for n in range (1,(a+1),1): t=t*n Print(t)
@PythonProjectSolver
@PythonProjectSolver 11 ай бұрын
you right bro ------- num = int(input("Enter the number : ")) F = 1 if num < 0: print("This is not a Valid Input") while num >= 1: F *= num num -= 1 print("The Factorial is",F)
@avinashjain3191
@avinashjain3191 2 жыл бұрын
It's a great job mam, Your teaching style is very good, because I'm learning python as a non technical person, I can understand very well. Please a suggestion:- Please next post videos asap.. Please solve and upload atleast more than 3to4 videos per day.
@facebookapp521
@facebookapp521 2 жыл бұрын
Digital marketing per bhi video bna do please 🙏 😀
@codewithwary
@codewithwary 8 ай бұрын
Nice tutorial
@mubahirkhan29
@mubahirkhan29 5 ай бұрын
9:06 Recursion
@himanshusinghnegi9786
@himanshusinghnegi9786 Жыл бұрын
Dear Mam I have a doubt here from for loop. We write two program one is Factorial and second is Fibonacci series. Methods are same but in result: Factorial runs and gives single input of loop like 3! = 6 only (why it's not 1, 2,6) But same case in Fibonacci series the loop shows all result of series like if I input till 3 numbers results shows 0,1,1(but why not 1 only as in case of factorial)???
@rahulsuryawanshi3960
@rahulsuryawanshi3960 11 ай бұрын
number= int(input("Enter the number for factorial. ")) factorial= [] fact=1 if number < 0: print("Factorial no exist") for i in range(number,0,-1): fact=i*fact factorial.append(i) print(f"{number}! = ",fact) print(factorial) ### for this logic not required num==0 condition
@RohitSinha-k4f
@RohitSinha-k4f 11 ай бұрын
for recursion, the negative value will throw an error
@facebookapp521
@facebookapp521 2 жыл бұрын
Hello mam please make one video what is sales funnel please 🙏 🙂
@swapniljp889
@swapniljp889 2 жыл бұрын
Ty mam it helps us to improve our logic 🙏🙏
@PythonProjectSolver
@PythonProjectSolver 11 ай бұрын
if you remove the if statment of 0 than it also work no need to add addition if statement for 0
@shivanshupandey2805
@shivanshupandey2805 7 ай бұрын
which ide are you using
@akashrai5253
@akashrai5253 7 ай бұрын
Pycharm
@BlaBla-jj6lq
@BlaBla-jj6lq 6 ай бұрын
Paycharm
@noormuhammadghaffari3672
@noormuhammadghaffari3672 2 жыл бұрын
love in pakistan love your chennel
@sarthakaswal7023
@sarthakaswal7023 2 жыл бұрын
Program not executing. num not defined. 7th line- 1 cannot be assign to literal
@BollyTollywood0
@BollyTollywood0 2 жыл бұрын
First 👍
@padaiwalayoutube
@padaiwalayoutube 4 ай бұрын
why are you not use math module
@devpathak6319
@devpathak6319 Ай бұрын
(num,1)
@subhasadhikary7753
@subhasadhikary7753 2 жыл бұрын
Hi sir mam please help me Facebook scrutiny key problem
@greatdeals.
@greatdeals. 2 жыл бұрын
Second ✌️
@devpathak6319
@devpathak6319 Ай бұрын
Range wrong hai 😭😭😭
@akshayingale82
@akshayingale82 Жыл бұрын
ye madam khud ratta mar kar aati hai😂
Display the Multiplication Table - Python Program Tutorial
10:44
WsCube Tech
Рет қаралды 42 М.
Fibonacci Sequence: Python Tutorial for Beginners
9:20
WsCube Tech
Рет қаралды 69 М.
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 38 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 27 МЛН
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 61 М.
Program Factorial in Python (Tutorial) | Python for Math
7:24
Wrath of Math
Рет қаралды 42 М.
Python Program to Check If the Number is Armstrong or Not?
14:37
WsCube Tech
Рет қаралды 66 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,2 МЛН
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 1 МЛН
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 38 МЛН