Why the input function fails in returning result by a basic script?

2 posts were split to a new topic: How to provide input to the input function?