Skip to content

Commit 55f3f3c

Browse files
authored
Update weighted_riza_arslan.py
1 parent 078fe39 commit 55f3f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Week02/weighted_riza_arslan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def weighted_srs(data, n, weights, with_replacement=False):
77
return random.choices(data, weights=w, k=n)
88
res, d_c = [], list(data)
99
for _ in range(n): res.append(d_c.pop(random.randrange(len(d_c))))
10-
return res:
10+
return res

0 commit comments

Comments
 (0)