0

I am trying something very simple but my code just stuck or it is a problem with the print input function. So this is my code

variable = input("Enter something: ")
print(variable)

When I run my script e get nothing. This is the output:

Enter something: try

And it just stuck. Nothing is printed. I do not know what is the problem and do not think that there is a coding problem.

mkrieger1
  • 19,194
  • 5
  • 54
  • 65

1 Answers1

0

Sublime text 3 has some build problems with its command palette. I just tried this code with sublime and faced the same problem.

Use command prompt(if windows) or terminal(if linux) with following command:

python <filename>.py

Or open this file with python IDLE and use F5 key to run the script.

Er. Harsh Rathore
  • 758
  • 1
  • 7
  • 21