paszea commited on
Commit
6ac1e87
·
verified ·
1 Parent(s): c8c0402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -12,6 +12,13 @@ from Gradio_UI import GradioUI
12
  def count(txt:str, c:int)-> int:
13
  """A tool that counts the number of occurences of c in txt.
14
  E.g. if txt="abcea" and c="a", it returns 2.
 
 
 
 
 
 
 
15
  """
16
  n = 0
17
  for i in txt:
 
12
  def count(txt:str, c:int)-> int:
13
  """A tool that counts the number of occurences of c in txt.
14
  E.g. if txt="abcea" and c="a", it returns 2.
15
+
16
+ Args:
17
+ txt: the containing string
18
+ c: the char to be counted.
19
+
20
+ Returns: number of c in txt
21
+
22
  """
23
  n = 0
24
  for i in txt: