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
862 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,300 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
7,555 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,880 points
1,845 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 7, 2020 in Python by Gitika
• 65,890 points
1,155 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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,342 views
0 votes
1 answer
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,300 points
867 views
0 votes
1 answer

How to Reverse a list in Python

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

answered Sep 29, 2018 in Python by SDeb
• 13,300 points
783 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP