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.

Reverend Jim commented: Lazy and rude. -3

Is 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?

commented: lamest man i have i ever judged just by his comment. +0
commented: Thank you for this, good man. +15
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.