I am trying to retrieve a balance of an account that is stored in an excel worksheet and display that to a tkinter gui. I get the number to display but I need it formatted with the $ and 2 decimal points. Any help would be much appreciated. Code:
# Import Modules as needed
from openpyxl import Workbook, load_workbook
from openpyxl.styles import numbers
# Load spreadsheet file
wb = load_workbook(filename = 'money.xlsx')
# Load all needed worksheets inside the spreadsheet
ws01 = wb['wc_ck_bal']
ws03 = wb['wc_sv_bal']
# Load Balances from spreadsheet
wc_ck_bal01 = ws01['A1'].value
wc_sv_bal01 = ws03['A1'].value
print(wc_ck_bal01)
print(wc_sv_bal01)
When running said program I get: [screenshot of results]
The balances are correct but how do I get them to alway display as currency with the $ and 2 decimal points?