Skip to main content

6.11) Exercise 12 - Lists And Strings


  1. Create a list containing the letters of the alphabet in lower case from a to g (remember, you could use the 'string' module)
  2. Shuffle the list
  3. Append the letter 'h'
  4. Sort the list again
  5. Append a random letter from i to n
  6. Remove the letter a from the list
  7. Print the first element in your list
  8. Create a new list by concatenating the last three elements of this list with the first two elements of this list
  9. Print the 4th element in your new list