Answer to Question #264625 in Python for swsq

Question #264625
  1. Given an integer and specific digit between (0-9) write a program to print the count of a given specific digit in the given integer

Example

Input: 2343243233

Input: 3

Output: 5




1
Expert's answer
2021-11-20T14:20:46-0500
s = input('Enter integer: ')
d = input('Enter specific digit: ')
print(s.count(d))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS