I know there is probably a really simple solution which could even be my lack of coding knowledge but if anyone has any idea that would be greatly appreciated
Default builds only support output, not input (that panel is technically an output panel). You can type whatever you want into it, but what you type isnt’ sent to the running program, so actually your program is still sitting at the
input() waiting for something to happen.
If you want to run programs that accept input, you generally either run them externally yourself in a terminal, or use something like Terminus ; the first linked video in the README on that page shows how you can set up a build to be interactive using Terminus.