WSQ09. Factorial Calculator

For this WSQ I had to do a factorial calcultaron without importing predifined functions that python already have. For that, I had to define a function for the factorial calculation and a For loop to calculate the result.

Before enter the function in the actual program I did a while loop for the user to do as many calculations as he wants.

The complicated about this was to implement a way to avaoid the user to enter a float number, for this, i used the try and except statements which are explained better here: https://docs.python.org/2/tutorial/errors.html

Here is the link to my program submitted to GitHub:https://github.com/Manuelmv94/TC1014/blob/master/WSQ09.py

CC BY 4.0 WSQ09. Factorial Calculator by Manuel Madrigal is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.