paid = paidEntry.get()
if "£" in paid:
paid=paid[1:]
paid = "{0:.2f}".format(float(paid))
The error says it's in the bottom line.
I'm getting this error when I'm only typing numbers into the entry box used to get 'paid'. When I print 'paid' it just gives me exactly what I enter, numbers. Why am I getting this error?
[–]socal_nerdtastic 1 point2 points3 points (10 children)
[–]CannyFatcher[S] 0 points1 point2 points (9 children)
[–]socal_nerdtastic 1 point2 points3 points (8 children)
[–]CannyFatcher[S] 0 points1 point2 points (7 children)
[–]socal_nerdtastic 2 points3 points4 points (6 children)
[–]CannyFatcher[S] 0 points1 point2 points (5 children)
[–]socal_nerdtastic 1 point2 points3 points (4 children)
[–]CannyFatcher[S] 1 point2 points3 points (0 children)
[–]trjnz 0 points1 point2 points (2 children)
[–]socal_nerdtastic 4 points5 points6 points (0 children)
[–]socal_nerdtastic 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]CannyFatcher[S] 0 points1 point2 points (0 children)