How to stop input in SublimeREPL

0 votes

I am working on the following code in SublimeREPL:

while(True):
    a = raw_input()
    print a

How do I stop input when this is running? Ctrl+C, Ctlr+D, or Ctrl+Z don't seem to work like they do in a terminal.

Jun 27, 2019 in Python by ana1504.k
• 7,910 points
184 views

1 answer to this question.

0 votes
You have to do ctrl+break or ctrl+space to break the infinite recursion and abort the program.

Hope this works!
answered Jun 27, 2019 by SDeb
• 13,290 points

Related Questions In Python

0 votes
1 answer

How to input optional arguments in python command line?

Please use this code. if len(sys.argv) == 2: first_log ...READ MORE

answered Jul 11, 2019 in Python by Suri
3,194 views
0 votes
0 answers
0 votes
1 answer

How to strip html/javascript from text input in django?

Hello @kartik, Django provides an utility function to ...READ MORE

answered Aug 17, 2020 in Python by Niroj
• 82,760 points
518 views
0 votes
1 answer

How to write a code In Python where input will be 1 then the output will be 2?

You can go through this:  def num(number): ...READ MORE

answered Oct 6, 2020 in Python by Gitika
• 65,910 points
116 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,160 views
0 votes
0 answers
0 votes
1 answer

How to use a global variable in function?

The global variable can be used in ...READ MORE

answered Sep 27, 2018 in Python by SDeb
• 13,290 points
219 views
0 votes
1 answer

How to Reverse a list in Python

You can use the reversed function in ...READ MORE

answered Sep 28, 2018 in Python by SDeb
• 13,290 points
262 views