Frames are a really useful. They only exist to hold other widgets. But frames can be made to appear and vanish at will. This means that you can control what the user sees.
The get() method can be used to find out what the user has entered and you can then use that in your program.
The code used in this video can be found via https://lyw4.life/Resources/python.php.