Question: Write a Python program that accepts a string and calculate the number of digits and letters. (hint: use isdigit()) Test your function with the following
Write a Python program that accepts a string and calculate the number of digits
and letters. (hint: use isdigit())
Test your function with the following statement: print digitletter(2900 tons and 1400 kilograms)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
