from tkinter import*
def change():
if var.get() == 0: print(a*2)
elif var.get() == 1: print(a+5)
elif var.get() == 2: print(a–10)
root = Tk()
var = IntVar()
var.set(0)
a = 5
rb1 = Radiobutton(text = "*2", font = "Arial 16", variable = var, value = 0, command = change)
rb2 = Radiobutton(text = "+5", font = "Arial 16", variable = var, value = 1, command = change)
rb3 = Radiobutton(text = "–10", font = "Arial 16", variable = var, value = 2, command = change)
rb1.pack(anchor = W)
rb2.pack(anchor = W)
rb3.pack(anchor = W)
root.mainloop()