### #1 - Debugging Code ###
### Uncomment the code below when you're ready to start this problem. ###

"""
def firstNonFactor(x):
    1 = factor
    while x % factor != 0:
        factor = factor + 1
    return factr
"""

### #2 - Identifying Errors in Python ###
### Uncomment the code below when you're ready to start this problem. ###

"""
def calcTotal(nums):
    for i in range(len(nums)):
        tot = tot + nums[i]
        
    return tot

calcTotal([1, 2, 3])
"""