Question: need help making this python code work HWrite a program that takes the integer X and counts the number of ' 2s in the digi
HWrite a program that takes the integer X and counts the number of ' 2s in the digi \#For example 2322 would return 3 , as there are 3 number 2s digits in the number def nunCount (x) : x=str(x) count =0 for i in range (Len(x)) : if 1=2: count=count+1 print(count) x=122322 nunCount (x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
