fork download
  1. # your code goes here
  2. import random
  3.  
  4. bad_directions = ['north', 'east', 'south', 'west']
  5.  
  6. good_directions = random.choice(bad_directions)
  7. bad_directions.remove(good_directions)
  8.  
  9. print good_directions,bad_directions
Success #stdin #stdout 0.01s 10024KB
stdin
Standard input is empty
stdout
south ['north', 'east', 'west']