Create 4.py

This commit is contained in:
Lukas Baumann 2021-02-17 11:18:10 +01:00 committed by GitHub
parent e503288818
commit 6dc92306fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
15/b/4.py Normal file
View File

@ -0,0 +1,7 @@
def choose(n, k):
res = n/k
while k > 1:
n-= 1
k -= 1
res *= n/k
return res