Suppose we have 8 balls with identical weight and a heavier one. How many times do you need to use the scale to identify the heavier ball?
Implement minimum_weighings(num_balls) for num_balls identical balls containing exactly one heavier ball. Each balance-scale use compares two groups and has three possible outcomes: left heavier, right heavier, or balanced. Return the minimum worst-case number of weighings needed to guarantee identification.
def minimum_weighings(num_balls):