Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python choose sample from list with replacement
Yulia Kras
Programming language:
Python
2021-03-31 18:11:27
0
Q:
python choose sample from list with replacement
Luis Rios
Code:
Python
2021-03-10 01:26:32
import random random.choices(list, k = 4)
1
Tags
python
list
replace
Related
how to randomly choose from a list python
using list comprehension to filter out age group pandas
python shuffle two lists together
split list in 3 part
list comprehension with square numbers python
python all possible combinations of multiple lists
python choose random sample from list
how to sort a list randomly in python
how to compra vales on lists python
python all elements in list in another list
get all combinations from two lists python
python shuffle two lists in the same way
how to sort nested list in python
python multiply all elements in list
python create a program that runs through all possible combinations
combination without repetition python
how to sort a list according to another list in python
python every other goes to a list
New to Communities?
Join the community