The error code I'm getting is;
line 83, in qu2
wins = float(wins)
ValueError: could not convert string to float:
This is the code that the error appears in
wins = wins_box.get()
draws = draws_box.get()
loses = losses_box.get()
wins = float(wins)
draws = float(draws)
loses = float(loses)
total_score = 0
total_score = total_score + wins * 3
total_score = total_score + draws * 2
total_score = total_score + loses
yourvar = tkinter.StringVar()
yourvar.set(total_score)
totalscore1 = tkinter.Label(q3, textvariable=yourvar)
totalscore1.pack()
Any help is appreciated, thank you.
print()yourwinsvariable - from the sounds of it, it contains a string that can not be converted to float.