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