MCPcopy Index your code
hub / github.com/geekcomputers/Python / printt

Function printt

Letter_Counter.py:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def printt():
11 message = message1.get()
12 letter = Letter1.get()
13 message = message.lower()
14 letter = letter.lower()
15
16 # Get the count and display results.
17 letter_count = message.count(letter)
18 a = "your message has " + str(letter_count) + " " + letter + "'s in it."
19 labl = tk.Label(root, text=a, font=("arial", 15), fg="black").place(x=10, y=220)
20
21
22lbl = tk.Label(root, text="Enter the Message--", font=("Ubuntu", 15), fg="black").place(

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected