Shuffle the list of letters

python list shuffle
Jul 18, 202310:40 PM203 views
0

Problem

Let's say you have a list of lower-cased letters `a-z` (a through z). Loop 100 times and each time you loop, print the first 5 elements from the shuffled list. One way to generate a list of the letters is as follows. ```python letters = [chr(i) for i in range(97, 123)] ``` If this exercise is easy, then each time you loop, shuffle the letters 100 times and print the first 5 elements.
Menu