0 votes
in Python by
Which function do we use to shuffle a list(say list1)?

select the correct answer from below options

1) shuffle(list1)

2) list1.shuffle()

3) random.shuffleList(list1)

4) random.shuffle(list1)

1 Answer

0 votes
by

4) random.shuffle(list1)

Related questions

0 votes
asked Oct 27, 2022 in Python by SakshiSharma
0 votes
asked Oct 4, 2022 in Redis by sharadyadav1986
...