Write a program randomize_list.py
that has a function randomize(lst)
. This function takes a list of values sent in as a parameter and rearranges the items in that list in a random order. The function doesn't return any value, it just mixes up the items in the list lst
.
The main()
program should create a list of values--the numbers 1-100? the alphabet?--and display that list showing that it is in order. Then call the randomize()
function with that list, and display the list again, demonstrating that the list has been jumbled.