Sublime Forum

Integer Input

#1

So I have recently started to learn Python…and I already have a problem.
Sublime does not take integer type of input in it’s terminal.

Using Sublime Text 3(version: 3211)

0 Likes

#2

Sublime Text doesn’t have a terminal, unless you’re using one provided by a plugin. Build systems don’t support any input. I’d suggest either using a standalone terminal or the Terminus package.

0 Likes

#3

See also

0 Likes

#4

Ok brother…but now I tried using SublimeREPL and still can’t take integer type input but yes I can take a string input.

0 Likes

#5

Yea bro…I tried using SublimeREPL and still can’t take integer type input but yes I can take a string input.

0 Likes

#6

That sounds like a problem with your code, not related to Sublime Text.

0 Likes

#7

Bt i just wrote a simple one:
a =int(input("Enter a number: "))
print(a+5)

What could be wrong with this?

0 Likes

#8

Ok no problem buddy
Thanks alot for your help…
I made a silly error with the keybinds.

I accidentally switched the build keybind with the SublimeREPL keybind that’s why it didn’t work.

Hope if someone else makes a similar error this could help

0 Likes