Skip to content

Commit 3d627c5

Browse files
authored
Update Day 1.md
1 parent 0517667 commit 3d627c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Status/Day 1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ print fact(x)
8282
# Solution by: harshraj22
8383

8484
n = int(input())
85-
def shortFact(x): return x if x is 1 else x*shortFact(x-1)
85+
def shortFact(x): return 1 if x <= 1 else x*shortFact(x-1)
8686
print(shortFact(n))
8787

8888
```

0 commit comments

Comments
 (0)