This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def factorial(n): | |
| """ | |
| Calculate the factorial of a non-negative integer. | |
| Args: | |
| n (int): The non-negative integer whose factorial is to be calculated. | |
| Returns: | |
| int: The factorial of the input integer. | |
| """ |