So i have this program that when i press an button it says something. then when i press another button it changes the first buttons outcome. but the outcome dont want to get "updated".
import sys
from Tkinter import *
mGui = Tk()
Answer = "NO"
def Truth():
Answer.replace("NO","YES")
print(Answer)
def Snonk():
print(Answer)
canvas = Canvas(mGui, width=200, height=300, bg="white")
mbutton = Button(mGui,text ="Is Hugo cool?",command = Snonk,).pack()
mbutton2 = Button(mGui,text ="Truth",command = Truth,).pack()
canvas.pack()
mGui.title("PQ")
mGui.mainloop()
e here