Write a function that takes a number n as input and returns a tuple of two values - the number of digits in that number and sum of digits in that number.
Recommended Answers
Jump to PostIs it your plan to post all your homework here for someone else to do? You also posted the "reverse words" question and found a kind-hearted person to do it for you. One such post gets a rebuke. Two in a row gets a snarky answer. Wanna try for three?
All 2 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.