Sublime Forum

String input being read as integer in SublimeREPL

#1

Running REPL in Sublime so I can use input. The code I’m writing asks for name and age. Name works fine but when I input the age it stops the program. Program works as intended on the Terminal and on the REPL website. I’m using Python3 and think I have updated everything on SublimeREPL for Python3, but maybe I missed a step or something

It should repeat the Age input underneath like it does for the Name input

0 Likes

#2

Have you pressed enter after typing the number? The number being highlighted is a ST/SublimeREPL feature and has nothing to do with how python reads the input.

0 Likes