ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Python Program to Find the Factorial of a Number Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2020
  • In this Tutorial you will learn to write a Python Program to find the factorial of a number using Iterative Method ( for loop ).
    The factorial of a positive integer n, which is denoted as n!, is the product of all positive integers less than or equal to n.
    That is n! = n * (n-1)*(n-2)*....*3*2*1
    So 4! = 4 * 3 * 2 * 1 which is equal to 24.
    Factorial for the numbers 0 and 1 is 1. That is 0! = 1 and 1! = 1.
    For negative numbers factorial value doesn't exists.
    our Social Media Pages
    / exampleprogram
    / exampleprogram
    / example_program
    Our Website
    www.ExamplePro...
    #ExampleProgram

ความคิดเห็น • 50

  • @mohamedh.394
    @mohamedh.394 3 ปีที่แล้ว +9

    I love your explanation. Most videos I've come across do not explain this thoroughly. keep it up!

  • @Roboticdock
    @Roboticdock ปีที่แล้ว +6

    I like the use of range function in the context of factorial. Very nice job!

  • @demo8point2
    @demo8point2 11 หลายเดือนก่อน +1

    You explained this very well, thanks!

    • @ExampleProgram
      @ExampleProgram  10 หลายเดือนก่อน

      You're very welcome!

  • @softmusic8057
    @softmusic8057 ปีที่แล้ว +2

    You got new subscriber :) cheers

  • @dishamehta7747
    @dishamehta7747 2 ปีที่แล้ว +3

    Best Explaination till now in TH-cam!!1❤😍

  • @likhomava600
    @likhomava600 ปีที่แล้ว +2

    I really enjoyed the way you explained the concept of factorial. dont you mind creating a python playlist where u will be doing similar task. I could learn a lot from you.

    • @ExampleProgram
      @ExampleProgram  ปีที่แล้ว

      i have plans to create complete video series.
      lets see :)

  • @sharonmutiso6360
    @sharonmutiso6360 2 ปีที่แล้ว +2

    clear and the best explanation in the TH-cam. Thank you.

  • @vovantrung1982
    @vovantrung1982 2 ปีที่แล้ว +3

    such a very clear and easy to understand video. Thank you

  • @rajuthoppil3393
    @rajuthoppil3393 2 ปีที่แล้ว +1

    This channel is so underrated!
    Share!

  • @rotes3106
    @rotes3106 ปีที่แล้ว +1

    Awesomely done and explained! Well done brother

  • @shreyasahu7425
    @shreyasahu7425 2 ปีที่แล้ว +2

    loved your explanation I was literally searching for an explanation for the factorial. Couldn't get any clearer.

  • @ShadeWhite_kay
    @ShadeWhite_kay 27 วันที่ผ่านมา

    I liked the latter part. Keep it coming

  • @JJJJ-gl2uf
    @JJJJ-gl2uf 2 ปีที่แล้ว +1

    Good explanation of factorials. Thanks.

  • @hyunzae
    @hyunzae ปีที่แล้ว +1

    so precise! thank you

  • @WysonFyson
    @WysonFyson 3 หลายเดือนก่อน +1

    helped much

    • @ExampleProgram
      @ExampleProgram  3 หลายเดือนก่อน

      glad my video helped you :)

  • @mugisha_art
    @mugisha_art 2 ปีที่แล้ว +1

    Bruh! your are good at explaning codes

  • @letsconnect8849
    @letsconnect8849 2 ปีที่แล้ว +1

    Best explanation... Thank u

  • @ugcnethomescienceonlinecla8641
    @ugcnethomescienceonlinecla8641 3 ปีที่แล้ว +3

    Thank you

  • @suhails1199
    @suhails1199 3 ปีที่แล้ว +2

    Well understandable 🤩🤩🤩

  • @kapilthapa-o7y
    @kapilthapa-o7y หลายเดือนก่อน

    Sir, where would u put the exit statement if i want to execute this program again n again until the user wans to exit the program.

  • @ankitadeore4718
    @ankitadeore4718 2 ปีที่แล้ว +2

    number=int(input("Enter a number:"))
    factorial=1
    if (number < 0):
    print("cant compute factorial of negative number")
    elif (number

    • @ananyamukherjee7601
      @ananyamukherjee7601 ปีที่แล้ว +1

      u have made a mistake as you have to multiply factorial with "num" not number, that's why u r getting 64 instead of 24

  • @DaleTale105
    @DaleTale105 2 ปีที่แล้ว

    thanks you very much really helpul 😊

  • @jorgemenendez5575
    @jorgemenendez5575 2 ปีที่แล้ว +1

    nice video man

  • @binsh2399
    @binsh2399 2 ปีที่แล้ว +1

    Which version of python is this?

  • @ataberdi2064
    @ataberdi2064 ปีที่แล้ว

    Hello, what software do you use to draw/write numbers with highletrs? You used it in this video.😀🤩

  • @autarroy
    @autarroy 3 ปีที่แล้ว +1

    Thanks, a very good explanation step by step.
    How to make this as application in GUI Tkinter

  • @omarhany5961
    @omarhany5961 3 ปีที่แล้ว +1

    hey how can i donate?