Question: code in python 3 PART D: DIGIT COUNT Write a function named digit count that takes one parameter that is a number (int or float)

code in python 3code in python 3 PART D: DIGIT COUNT Write a function named

PART D: DIGIT COUNT Write a function named digit count that takes one parameter that is a number (int or float) and returns a count of even digits, a count of odd digits, and a count of zeros that are to the left of the decimal point. Return the three counts in that order: even_count, odd_count, zero_count. For example: digit_count (1234567890123) returns (5, 7, 1) digit count (123400.345) returns (2, 2, 2) digit_count (123.) returns (1, 2, 0) digit_count (0.123) returns (0, 0, 1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!