How would i make it so i can

how do I make it so you can type anything, for example, i type hello (as the anything) one (as u go to put it there) then output ina different textbox would be hello = 1

i think i got to use var but i so unsure how

so for example print(“hi”) ( i want it so the thing in “” is what ever you want and you got to type print() so aka hi (for wat ever you what t type instead of hi) one (got to type)