Can you tell me what’s wrong with my code ? Did I do something weird to a “programmer’s” eyes?
My code works perfectly on python 3 but not on the codecademy(which I was told that they still use python 2).
Thank you so much!
def digit_sum(n): dismantled =  for num in n: dismantled.append(int(num)) print (sum(dismantled)) digit_sum(input("Enter number: "))