input: def choose_x_or_y(n, x, y):
      """A basic program that returns the value of x if n is a prime number, 
      otherwise it returns the value of y.
  
      Examples:
      choose_x_or_y(7, 34, 12) == 34
      choose_x_or_y(15, 8, 5) == 5
      
      """
output:     def is_prime(num):
          if num <= 1:
              return False
          for i in range(2, int(num ** 0.5) + 1):
              if num % i == 0:
                  return False
          return True
  
      return x if is_prime(n) else y