Double check how you’re running your code, specifically that you are able to see the output and that you’re providing some input to stdin.
This code should crash with a detailed exception traceback that will tell you what problem occured and where. Specifically, it looks like it should either be crashing with an IndexError (if the user input was bad), or with a NameError if the input was OK and your script makes it to the line if function == "local":. At that point, you’re referencing a variable that isn’t defined (function only exists inside the call to write).
In order for us to help you, we need to be able to see the problem just as you experience it, by using the code that you provide. We can’t see your computer screen or anything that you are typing in. It’s not always possible to just copy and paste some section of the program, where you think the problem is, and make it clear. We need to be able to copy and paste what you gave us, without adding or changing anything, and see the problem.
So, before posting, you should make sure that this is possible. Copy and paste the code back from your post, in a new file, and save and run it. Make sure that it shows the exact problem that you want to ask about, and try to make it as simple as you can while still showing that problem. Then, when someone answers, try to fix that example first, and then apply that advice to the real program.
You are storing the output of the input() function in the variable input. This won’t work. Once you’ve done that the name input is no
longer bound to the input() function.
after some work and openning the .py file a lot of times, i discovered some things… some very weird things… one of the problems was the wait(0.1) it gave error, but now, after deleting it, if i input anything, the output is 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
i think i need even more work