How can I impute values with Sublime text

Asked

Viewed 188 times

0

How can I pass values to Sublime Text Exp: I created this simple program to make a basic account! Note: there is no box to pass value, I believe you need to use the terminal but I do not know very well

a = input('digite o primeiro valor ')
b = input('digite o segundo valor')
print('o valor do primeiro é:{} e o segundo é:{}'.format(a,b))
  • Have you tried using the editor’s own console window? I had to make a plugin once, but it was to change the parameters of the command line, but I believe that for input the console might solve. Later, if you give, I test and comment here.

  • Has that package, which seems to be what you need. Although in this case I prefer to run in the same terminal, but the "philosophy" of Sublime seems to be to install packages for everything (even the package manager is a package that has to be installed separately...)

1 answer

0


You can run through the Sublime itself. Just save your project and hit "Ctrl"+"B" (or 'Tools', 'Build') to run the project. In Sublime, Voce can use the terminal itself (which is usually at the bottom of the IDE). Remember to put "# -- coding: utf-8 --" at the beginning of your code, to accept the special characters (with accentuation).

If you want to use the terminal, it depends on whether your OS is Windows or Linux: Overall:

  • 1

    Note: THE coding: utf-8 at the beginning of the file was only needed in Python 2. In version 3 the files are already by default in UTF-8.

  • thanks for the help

Browser other questions tagged

You are not signed in. Login or sign up in order to post.