There is a built-in function in Python that will help you out for taking the input from a user. If you are using an older version of Python (2x), then you can use:
raw_input(‘Enter the user input: ‘)
If you are using the latest version of Python (3x), then you can use:
input(‘enter the user input: ‘)
The output will be as follows:
Now inside the box, you can just write your desired input, and this input will get stored in the text variable:
After passing your text, you can just hit the Enter button:
If you are looking for an online course to learn Python, I recommend this Python Certification program by Intellipaat.