Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. def select_target_language(possible_languages):
  2.     """Randomly choose a target language from a list of possible
  3.    languages.
  4.    
  5.    Hint: your solution can be done in 1 line of code (including
  6.    the return statement).
  7.  
  8.    Parameters
  9.    ----------
  10.    possible_languages : list of sets
  11.        The list of possible languages to choose from
  12.  
  13.    Returns
  14.    -------
  15.    set : the target language
  16.  
  17.    """
  18.     # YOUR CODE HERE
  19.     return np.random.choice(possible_languages)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement