I want to make a python app that sums the numbers of a birthdate.
day = raw_input("What day were you born?")
month = raw_input("What month were you born?")
year = raw_input("What year were you born?")
day = int(day)
month = int(month)
year = int(year)
Instead of casting them as integers, add them as strings and then map each character as an integer and find the sum:
day = raw_input("What day were you born?")
month = raw_input("What month were you born?")
year = raw_input("What year were you born?")
print sum(map(int, day+month+year))
If you want to keep adding the digits until you arrive at a one-digit number, use a loop:
day = raw_input("What day were you born?")
month = raw_input("What month were you born?")
year = raw_input("What year were you born?")
num = day+month+year
while len(num) > 1:
num = str(sum(map(int, num)))
print num