I am coding a calculator. I decided to use 2 strings, one that is shown to the user on a screen, and one, that is for making the calculation. I now want to make a function that deletes everything on the screen. But now I have the problem, that the variable, that is used to perform the calculation, still has the value of the number inside of it. I wanted to ask, how I could remove that number. I also use a tkinter window, to show everything.
Here is the function, where I wanted to do that:
def clear_S(event):
global Evaluation_T #This gets shown
global Evaluation_C #This is for the calculation
Evaluation_T = " "
renew_Label() #Displays it to a
Evaluation_T = ""
#Logic, to remove that from Evaluation_C
If you need any more information, please ask.