'The Input Function Doesn't Do Anything When I Click Enter in Python [closed]

I try doing this code and when I go into the terminal I type my input but pressing enter just takes me onto a new row.

The code I did:

name = input('What is your name? ')
print('Hi ' + name)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source