Print the factorial number program in Tkinter python

Print the factorial number program in Tkinter python. This program will print the factorial number in the new windows as an output Tkinter python gui program

import tkinter as tk
from tkinter.colorchooser import *
def factorial(n):
return 1 if (n==1 or n==0) else n * factorial(n - 1);
def calculate():
result=factorial(int(entryText.get()))
info.config(text=result)
mw = tk.Tk()
mw.title('Inlarn.com')
mw.geometry("200x200")
mw.resizable(0, 0)
entryText = tk.Entry(text=1, bg='white', fg='black')
entryText.place(x = 50, y = 25, width=100, height=25)
btn = tk.Button(text='Calculate', command=calculate)
btn.place(x = 50, y = 75, width=100, height=25)
info = tk.Label(text='result', bg='white', fg='black')
info.place(x = 50, y = 125, width=100, height=25)
mw.mainloop()