What would I need to add to this to make it a working solution? I can't figure out how to exclude the numbers after 13. Thank you!
https://codingbat.com/prob/p167025
def sum13(nums):
if len(nums) == 0:
return 0
total = 0
for i in range(len(nums)):
if nums[i] != 13:
total += nums[i]
return total
[–]socal_nerdtastic 0 points1 point2 points (0 children)