Question: P1: Write a Python program that accepts a string and calculate the number of digits and letters. hint: use isdigit) Test your function with the
P1: 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 1 1400 kilograms')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
