Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 977 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 977 Bytes

Python factorial

A short Python program that finds the factorial of a positive integer.

Setup and run

Prerequisites

Before you can run this program, you need to install Python on your system.

Cloning the repository

To clone this repository locally, run the following command from your terminal:

git clone https://github.com/new2code/python-factorial.git

Running the program

  1. To open the repository's directory, run the following command from your terminal:

    cd python-factorial
  2. To calculate the factorial of a specific number, in factorial_finder.py, update the value of number.

  3. To run the program on Mac or Linux, run the following command in your terminal:

    python factorial.py

    Otherwise, to run the program on Windows, run the following command from the command line:

    py factorial.py