Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f7f2627

Browse files
committed
DOCS Added docs to fact function
1 parent 96c0eff commit f7f2627

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def lg(n: float) -> int:
130130

131131

132132
def fact(n: int) -> int:
133+
"""Returns the computed factorial of an integer"""
133134
if n == 1:
134135
return 1
135136

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /