HF RL Explorer

Task: Debug a Python Program Using pdb

Task: Debug a Python Program Using pdb: a task in Terminal-Lego-15k (Harbor dataset). You are given a Python program that contains a bug causing incorrect output. Your task is to use Python's built-in debugger pdb to identify and fix the bug. The program is supposed to calculate the factorial of…

The task

You are given a Python program that contains a bug causing incorrect output. Your task is to use Python's built-in debugger `pdb` to identify and fix the bug. The program is supposed to calculate the factorial of numbers and return the sum of factorials for a given list of integers.

Part of PrimeIntellect/Terminal-Lego-15k.