def digit_sum(n):
    n =  int(n < 0)
    n = (10%10)

please i dont understand the instructions please help please explain what do he want from me?


Your meant to create a function that will add up the digits of any number given to it. eg, if I should insert the number 789. Your function should do 7+8+9 and equal 24.


Its pretty easy brother. check this link on this i have given a detailed explanation along with my code you will understand properly after reading it and if u liked understood please mark this as a solution :wink:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.