Script Package cannot run python code properly

I saw that script could run python code inside my atom editor, but I saw an issue with Script, it would run simple code like print("it worked") but it will not run codes which have input, for, while loops and other things(eg: if) in it. Please help me, is this issue universal or just for me, please tell me how to fix it, I also saw Hydrogen though I don’t think it is meant to run this type of code.

Thanks in advance.