Spaces:
Sleeping
Sleeping
update tool description
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def get_nth_fibonacci_number(n:int)-> int: #it's import to specify the return ty
|
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
"""A tool that computes the nth fibonacci number
|
15 |
Args:
|
16 |
-
n: the index of the fibonacci number you want to know
|
17 |
"""
|
18 |
if n == 0:
|
19 |
return 0
|
@@ -31,8 +31,8 @@ def get_nth_fibonacci_number(n:int)-> int: #it's import to specify the return ty
|
|
31 |
def count_letters_in_word(word:str, letter:str)->int:
|
32 |
"""A tool that enables you to know how many instances of one letter appear in a specific wordl
|
33 |
Args:
|
34 |
-
word: the word to count letters on
|
35 |
-
letter: the letter to count inside the word.
|
36 |
"""
|
37 |
return word.count(letter)
|
38 |
|
|
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
"""A tool that computes the nth fibonacci number
|
15 |
Args:
|
16 |
+
n: an integer with the index of the fibonacci number you want to know (e.g., 5).
|
17 |
"""
|
18 |
if n == 0:
|
19 |
return 0
|
|
|
31 |
def count_letters_in_word(word:str, letter:str)->int:
|
32 |
"""A tool that enables you to know how many instances of one letter appear in a specific wordl
|
33 |
Args:
|
34 |
+
word: a string with the word to count letters on (e.g., "strawberry").
|
35 |
+
letter: a string with the letter to count inside the word. (e.g., "r")
|
36 |
"""
|
37 |
return word.count(letter)
|
38 |
|