Question: 1. Write a program that asks a user to enter an integer and a number n between 0 and 9. The program should count the
1. Write a program that asks a user to enter an integer and a number n between 0 and 9. The program should count the number of ns in the integer. For example, if the user types in the integer 345924 and 4, your program will report that the number four appears two times. You can use the function len() to discover the number of digits of the number, if s = 123456789, len(s) = 9.

Example #1. 1 Enter a number 123456789 a Enter a digit between 0 and 9: 7 a The number 7 appears 1 time(s) Example #2 1 Enter a numer 77840123 2 Enter a digit between 0 and 9: 7 a The number 7 appears 2 time (s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
