4
I am using Sublime Text to study python, but it does not support input
.
When running the following code with the sublime build:
velocidade = int(input("Digite a velocidade: "))
I get the following error:
Type the speed: Traceback (Most recent call last): File "/Users/matheusbaumgart/Desktop/python/others/Blank.py", line 1, in speed = int(input("Type speed: "))Eoferror: EOF when Reading a line
Someone knows a good solution to use direct input in the sublime?
Thanks, I installed here, only what I miss is a shortcut to run the current code, as I am studying, I need to run it several times, would have some? I searched if not found. For interactive input the terminal is serving well :)
– Matt Costa
I don’t know any, the only alternative I can suggest is to put your code in a function and execute that function from the terminal. See the code in that question for an example (this is a standard widely used in practice in Python programs).
– mgibsonbr
@Matheusbaumgart if by running the current code you mean running the selection or the line, see this question http://answall.com/questions/8648/howto run a-linha-actual-no-sublime-text-2-ou-ide-que-permita-execucao-da-l
– Carlos Cinelli