Python random.shuffle() to Shuffle List, String - PYnative
https://pynative.com/python-random-shuffle/
WEBJun 16, 2021 · import random # list of names employees = ['Jon', 'Emma', 'Kelly', 'Jason'] # list of numbers salary = [7000, 6500, 9000, 10000] # Lists before Shuffling print("Employee Names: ", employees) # output ['Jon', 'Emma', 'Kelly', 'Jason'] print("Employee Salaries: ", salary) # Output [7000, 6500, 9000, 10000] # To Shuffle two List at once with the ...
DA: 7 PA: 97 MOZ Rank: 42