Skip to content

Commit fbd457e

Browse files
Update weighted_melisanur_hamamci.py
1 parent 7e7f0d6 commit fbd457e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Week02/weighted_melisanur_hamamci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ def weighted_srs(data, n, weights, with_replacement=False):
33
if with_replacement or weights:
44
return random.choices(data, weights=weights, k=n)
55
else:
6-
return random.sample(data,n)
6+
return random.sample(data,n)

0 commit comments

Comments
 (0)