Arnaudding001 commited on
Commit
92aa80b
1 Parent(s): 91c207b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,13 +39,13 @@ def convert_to_french_letters(number):
39
  if hundreds == 1:
40
  words.append('cent')
41
  else:
42
- words.append(units[hundreds] + ' cent')
43
 
44
  if tens_and_units > 0:
45
  if tens_and_units < 10:
46
- words.append(units[tens_and_units])
47
  elif tens_and_units < 20:
48
- words.append('dix-' + units[tens_and_units-10])
49
  else:
50
  tens_digit = tens[int(tens_and_units / 10)]
51
  units_digit = units[int(tens_and_units % 10)]
 
39
  if hundreds == 1:
40
  words.append('cent')
41
  else:
42
+ words.append(units[int(hundreds)] + ' cent')
43
 
44
  if tens_and_units > 0:
45
  if tens_and_units < 10:
46
+ words.append(units[int(tens_and_units)])
47
  elif tens_and_units < 20:
48
+ words.append('dix-' + units[int(tens_and_units-10)])
49
  else:
50
  tens_digit = tens[int(tens_and_units / 10)]
51
  units_digit = units[int(tens_and_units % 10)]