I've got this base of my code:
from tkinter import *
def clik(z=None):
global T
s = T.get("1.0",'end-1c')
## what next?
o= Tk()
T=Text(o, height=20, width=50)
T.pack()
T.bind("<Key>", clik)
o.mainloop()
Every time user will type something inside of Text widget I'm using function to gather the input. Now the goal is to see how many number and letter did he use. Spliting s and checking it with isalpha() and isalnum() does not work so great if user input would look something like ' Abs3 asdasd asd11 111 11ss'. How can I keep tracing and storing user input inside of Text widget if I want to have information about current amount of numbers and letters inside of Text widget? Thank you in advance