title: How to rearrange letters from a word from a list that you have made?
body: <p>How do you rearrange the letters in a word(the word is in a list.) I'm trying to make a program where I make a list and randomly pick a word from the list, then I have to re arrange the word's letters and make a list including those letters then I have to tell the user the theme of the first list and show them the scrambled word and then they have to guess the word based on the theme I gave them and the letters they have.This is the code I have so far I have no problem with anything except the rearranging the letters and making a list for them:</p>
  
  <pre><code>import random
  mysports= ["swimming" , "basketball" , "soccer" , "cross country" , "football" , "cross-country skiing"]
  a = (random.choice(mysports)) 
  if a == mysports[0]:
    #code that is supposed to re arrange the letters
  elif a == mysports[1]:
    #code that is supposed to re arrange the letters
  elif a == mysports[2]:
    #code that is supposed to re arrange the letters
  elif a == mysports[3]:
    #code that is supposed to re arrange the letters
  elif a == mysports[4]:
    #code that is supposed to re arrange the letters
  elif a == mysports[5]:
    #code that is supposed to re arrange the letters
  </code></pre>