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

need help making this python code work
need help making this python code work HWrite a program that takes

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!