diff options
Diffstat (limited to 'progs/a531.py')
-rw-r--r-- | progs/a531.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a531.py b/progs/a531.py new file mode 100644 index 0000000..b87291e --- /dev/null +++ b/progs/a531.py @@ -0,0 +1,5 @@ +def frequency(a,x):
+ count = 0
+ for i in a:
+ if i == x: count += 1
+ return count
\ No newline at end of file |