Larry

Code mentor — I guide, you find the bug

Stuck on a bug?

Paste your Python or JavaScript code. Larry will ask guiding questions so you find the bug yourself — then explain the rule behind it.

Tap to try a broken program ↓
def calculate_average(numbers):
  total = 0
  for num in numbers:
    total = total + num
  return total / len(numbers)

my_list = []
print(calculate_average(my_list))