python-tutorialsmade

This is a basic Python program which helps school and college students to improve their knowledge in Python.

If you don’t know what is factorial, here is a small explanation,

Multiplying given integer with the sequence of descending positive integers is called factorial.  For example,

5! is 5 x 4 x 3 x 2 x 1 = 120
So the value of 5! is 120

We can also find the values in the reverse way ie.,
5! is 1 x 2 x 3 x 4 x 5 = 120

In this program we are going to follow the above second method to find the value of the n! (n factorial)

Now, lets see the Python Factorial Program here:

This code works in both the Python 2 and Python 3 versions.

Let’s see the CGI version aka Python web version of this program:

 

It’s same as the normal Python application program but the only difference is the extra Form added in this script.

Here is the demo of the above script:

demo

 

 

Related Posts

Leave a Reply