Problem in python in sublime text

1

Well, guys, I'm having a problem when I put my python code in the sublime text to run.

The problem is as follows, the code does not work, only compiles and nothing else.

In case, it is not running any line (trying to run via CTRL + B version 3.0).

I'm new to this editor so apologize for any ignorance.

a = float(input("Digite um número: "))
b = float(input("Digite outro número: "))
print(a)

It only shows one message:

[Finished in 0.0s]
    
asked by anonymous 06.01.2017 / 20:16

1 answer

2

One solution to the problem is to create an alternate build system ( Build System ), to do this follow these steps:

1. In a new Sublime tab paste the following code:

{
    "cmd": ["start", "cmd", "/k", "C:/Python27/Python.exe", "$file"],
    "selector": "source.python",
    "shell": true,
    "working_dir": "$file_dir"
}

2.

3. Save the file named "C:/Python27/Python.exe" in the folder where the sublime is installed within: / .

4. In Sublime click on \ and select Python_cmd.sublime-build , when using the shortcut Ctrl + B will open the CMD to run the Python commands.

    
06.01.2017 / 21:03