def myfun(num): count = 0 for x in num: if x == 4: count = count + 1 return count if __name__=="__main__": print(myfun([1, 4, 6, 7, 4])) print(myfun([1, 4, 6, 4, 7, 4]))
2 3
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Write a python program to merge nested lists ?
Write a Python Program to Find the Sum of Natural Numbers.
Write a Python Program to Check Prime Number.
Write a python program to check two strings are Anagram or not
Write a Python Program to Check if a Number is Positive, Negative or Zero.