I was writing a python code in VS Code and somehow it's not detecting the input() function like it should. Suppose, the code is as simple as
def main():
x= int ( input() )
print(x)
if __name__ == "__main__":
main()
even then, for some reason it is throwing error and I cannot figure out why.
The error being-

P.S. 1)I am using Python 3.10 2) I tried removing the int() and it still doesn't work.
ValueError. There is no prompt for input because you haveinput()but the shell is waiting for input. If you write something likeinput('need input:> ')then you should see the input prompt.