text = input()[:10]
from tkinter import *
def input(t="",l=20):
def limit(text,l):
if len(text.get()) >= l:
text.set(text.get()[:l])
root = Tk()
text = StringVar()
Label(root,text=t, borderwidth=4 ).grid(row=0,column=0)
Entry(root, width = l+3, textvariable = text).grid(row=0,column=1)
text.trace("w", lambda*x: limit(text,l))
root.bind('<Return>', lambda x:root.destroy())
root.mainloop()
return text.get()
print(input("Введите слово: ",10))
import winreg
with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, "Software\\") as h_apps:
for idx in range(winreg.QueryInfoKey(h_apps)[0]):
print(winreg.EnumKey(h_apps, idx))