voliveiratw commited on
Commit
5099de2
·
verified ·
1 Parent(s): 19d9c0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,7 +18,8 @@ def replace_vowels_with_x_and_concatenate_with_provided_int(sentence:str, number
18
  number: the second argument
19
  """
20
  vowels = "aeiouAEIOU"
21
- result += ''.join('X' if char in vowels else char for char in sentence)+result
 
22
  return f"Here's the output of your function: '{result}'"
23
 
24
  @tool
 
18
  number: the second argument
19
  """
20
  vowels = "aeiouAEIOU"
21
+ result = ""
22
+ result = ''.join('X' if char in vowels else char for char in sentence)+result
23
  return f"Here's the output of your function: '{result}'"
24
 
25
  @tool