Find the Factorial of a Number - Python Program Tutorial🔥

  Рет қаралды 59,406

WsCube Tech

WsCube Tech

Күн бұрын

In this video, learn to Find the Factorial of a Number - Python Program Tutorial🔥. Find all the videos of the 100+ Python Programs Course in this playlist: • Python Program to Add ...
💎 Get Access to Premium Videos and Live Streams: / @wscubetech
WsCube Tech is a leading Web, Mobile App & Digital Marketing company, and institute in India.
We help businesses of all sizes to build their online presence, grow their business, and reach new heights.
👉For Digital Marketing services (Brand Building, SEO, SMO, PPC, SEM, Content Writing), Web Development and App Development solutions, visit our website: www.wscubetech...
👉Want to learn new skills and improve existing ones with in-depth and practical sessions? Enroll in our advanced online courses now and make yourself job-ready: courses.wscube...
All the courses are job-oriented, up-to-date with the latest algorithms and modules, fully practical, and provide you hands-on projects.
👉 Want to learn and acquire skills in English? Visit WsCube Tech English channel: bit.ly/2M3oYOs
📞 For more info about the courses, call us: +91-7878985501, +91-9269698122
✅ CONNECT WITH THE FOUNDER (Mr. Kushagra Bhatia) -
👉 Instagram - / kushagrabhatiaofficial
👉 LinkedIn - / kushagra-bhatia
Connect with WsCube Tech on social media for the latest offers, promos, job vacancies, and much more:
► Subscribe: bit.ly/wscubech...
► Facebook: / wscubetech.india
► Twitter: / wscubetechindia
► Instagram: / wscubetechindia
► LinkedIn : / wscubetechindia
► KZbin: / wscubetechjodhpur
► Website: wscubetech.com
-------------------------------------| Thanks |--------------------------
#pythontutorials #python #pythonprogramming

Пікірлер: 40
@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
@krish868
@krish868 Ай бұрын
a=int(input("enter a number")) import math print(math.factorial(a))
@OjasAgarwal-ou8wk
@OjasAgarwal-ou8wk 9 ай бұрын
a=int(input("enter a number")) For x in range(a-1, 0,-1) : a=a*x Print(a)
@AkashShukla007
@AkashShukla007 Жыл бұрын
In every video what a great explanation. Thank you very much ma'am. You helped a lot🙂.
@friend5242
@friend5242 4 ай бұрын
def factorial(a): return 1 if a==1 or a==0 else a*factorial(a-1) print(factorial(4))
@dkscare2908
@dkscare2908 Жыл бұрын
thanks a lot mam for your help watching your videos one day before my exame which helps a lot
@rishiraj2548
@rishiraj2548 Жыл бұрын
Thanks for teaching all these algorithms and Python language.
@abhijeetsinghyadav8988
@abhijeetsinghyadav8988 5 ай бұрын
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)
@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.
@Anshmajumdar
@Anshmajumdar 11 ай бұрын
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 10 ай бұрын
thanks brother its help me a lot
@PythonProjectSolver
@PythonProjectSolver 8 ай бұрын
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)
@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)???
@RohitSinha-k4f
@RohitSinha-k4f 9 ай бұрын
for recursion, the negative value will throw an error
@PythonProjectSolver
@PythonProjectSolver 8 ай бұрын
if you remove the if statment of 0 than it also work no need to add addition if statement for 0
@facebookapp521
@facebookapp521 2 жыл бұрын
Digital marketing per bhi video bna do please 🙏 😀
@facebookapp521
@facebookapp521 2 жыл бұрын
Hello mam please make one video what is sales funnel please 🙏 🙂
@sarthakaswal7023
@sarthakaswal7023 Жыл бұрын
Program not executing. num not defined. 7th line- 1 cannot be assign to literal
@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 8 ай бұрын
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)
@Abdul-708
@Abdul-708 8 ай бұрын
Spr ma'am
@rahulsuryawanshi3960
@rahulsuryawanshi3960 9 ай бұрын
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
@padaiwalayoutube
@padaiwalayoutube 2 ай бұрын
why are you not use math module
@codewithwary
@codewithwary 5 ай бұрын
Nice tutorial
@subhasadhikary7753
@subhasadhikary7753 2 жыл бұрын
Hi sir mam please help me Facebook scrutiny key problem
@noormuhammadghaffari3672
@noormuhammadghaffari3672 2 жыл бұрын
love in pakistan love your chennel
@BollyTollywood0
@BollyTollywood0 2 жыл бұрын
First 👍
@greatdeals.
@greatdeals. 2 жыл бұрын
Second ✌️
@akshayingale82
@akshayingale82 Жыл бұрын
ye madam khud ratta mar kar aati hai😂
@sukhadasatpute10
@sukhadasatpute10 Жыл бұрын
Really great explanation. Want more videos like this YOU explaining basic programs with python. ❤
@shivanshupandey2805
@shivanshupandey2805 5 ай бұрын
which ide are you using
@akashrai5253
@akashrai5253 4 ай бұрын
Pycharm
@BlaBla-jj6lq
@BlaBla-jj6lq 4 ай бұрын
Paycharm
@yatin_
@yatin_ 7 ай бұрын
ma'am you are just fantastic...
@mubahirkhan29
@mubahirkhan29 2 ай бұрын
9:06 Recursion
@AshishTomar-rk6il
@AshishTomar-rk6il 4 ай бұрын
Import math integer = input("Enter the integer":) factorial_integer = math.factorial(integer) Print(factorial_integer)
@sushantchougale6818
@sushantchougale6818 2 жыл бұрын
Thank you Madam 😊 🙏
@PythonProjectSolver
@PythonProjectSolver 8 ай бұрын
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)
@defenceloverupadhyay9659
@defenceloverupadhyay9659 Жыл бұрын
Thanks mam me Bahut mughe for loop samajh nahin aa rha tha what h great explanation mam
@swapniljp889
@swapniljp889 2 жыл бұрын
Ty mam it helps us to improve our logic 🙏🙏
LIFEHACK😳 Rate our backpacks 1-10 😜🔥🎒
00:13
Diana Belitskay
Рет қаралды 3,9 МЛН
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 55 МЛН
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
LIFEHACK😳 Rate our backpacks 1-10 😜🔥🎒
00:13
Diana Belitskay
Рет қаралды 3,9 МЛН