summaryrefslogtreecommitdiff
path: root/progs/a567.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a567.py')
-rw-r--r--progs/a567.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a567.py b/progs/a567.py
new file mode 100644
index 0000000..5caf29d
--- /dev/null
+++ b/progs/a567.py
@@ -0,0 +1,6 @@
+def count(s,c) :
+ res = 0
+ for i in range(len(s)) :
+ if (s[i] == c):
+ res = res + 1
+ return res \ No newline at end of file