letter = input("Which letter would you like to count the occurrences of?: ")
// Standardize to lower case.
message = message.lower()
letter = letter.lower()
// Get the count and display results.
letter_count = message.count(letter)
print("\n" + name + ", your message has " + str(letter_count) + " " + letter + ""s in it.")
After Change
import tkinter as tk
root = tk.Tk()
root.geometry("400x260+50+50")
root.title("Welcome to Letter Counter App")
message1 = tk.StringVar()
Letter1 = tk.StringVar()
def printt():
message=message1.get()