Feb-04-2017, 07:18 AM
split it up into many white-space separated words (however many there are), and take the last item [-1] as the age and slice all but the last [:-1] one as the name. suggestion: use a variable name other than name for the input before the name is sliced out. extra points: check if the last one is a valid age (is '56.1' a valid age?) more points: take ages like '27 years and 3 months'.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.