Question: . Write a function named productDigit ( s ) that accepts a string s as the argument. Assume this string contains a series of single
Write a function named productDigits that accepts a string s as the argument. Assume this string contains a series of singledigit numbers. Use a for loop to loop through each character in the string, then calculate and return the product of all the singledigit numbers in the string. For example, if the argument is your function should return because xxx pts
Write a function named productDigits that accepts a string s as the argument. Assume this string contains a series of singledigit numbers. Use a for loop to loop through each character in the string, then calculate and return the product of all the singledigit numbers in the string. For example, if the argument is your function should return because xxx pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
