how to sort a list randomly in python
import random
number_list = [7, 14, 21, 28, 35, 42, 49, 56, 63, 70]
print("Original list:", number_list)
random.shuffle(number_list)
print("List after first shuffle:", number_list)
random.shuffle(number_list)
print("List after second shuffle:", number_list)
4.25
4
random.shuffle(x, random)
Thank you!
4
0
Are there any code examples left?
New code examples in category Python