def ticket(lotto, plays, cost):
    """Generate a 'play ticket' consistent of numbers to play;

    * lotto: An instance of the Lottery class.
    * plays: The number of *plays* to generate (i.e. the set of numbers)
    * cost: how much a single play costs.

    Returns a tuple of consisting of 1) a list of powerball numbers, and 2)
    the cost of playing.

    """
    numbers = []
    for i in range(plays):
        numbers.append(lotto.powerball())
    return (numbers, plays * cost)