Верните факториал неотрицательного целого n (0! = 1).
n
0
1
5
120
7
5040
def factorial(n: int) -> int:
Sign in to see submission history
Sign in to use AI Mentor
Your code output will appear here