diff --git a/README.md b/README.md index 6df5cc0..dc160f0 100644 --- a/README.md +++ b/README.md @@ -2473,8 +2473,8 @@ while True: except ValueError: continue unit = values['-UNIT-'] - units = {'g': 0.001, 'kg': 1, 't': 1000} - lbs = value * units[unit] / 0.45359237 + factors = {'g': 0.001, 'kg': 1, 't': 1000} + lbs = value * factors[unit] / 0.45359237 window['-OUTPUT-'].update(value=f'{value} {unit} is {lbs:g} lbs.') window.close() ``` diff --git a/index.html b/index.html index d4733d3..e812624 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@