Python Code Challenge

233 - Write a function that takes a positive integer as input and returns its factorial. For testing purposes, you can write test cases to verify that the function correctly calculates the factorials of different integers.