We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 078fe39 commit 55f3f3cCopy full SHA for 55f3f3c
Week02/weighted_riza_arslan.py
@@ -7,4 +7,4 @@ def weighted_srs(data, n, weights, with_replacement=False):
7
return random.choices(data, weights=w, k=n)
8
res, d_c = [], list(data)
9
for _ in range(n): res.append(d_c.pop(random.randrange(len(d_c))))
10
- return res:
+ return res
0 commit comments