Python Forum
How to terminate a list of inputs with a set value? SOS
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to terminate a list of inputs with a set value? SOS
#2
Please read https://python-forum.io/misc.php?action=help&hid=25 how to use code tags to format your question.
The error is because the first time your list a[] will have 1 item. So a[n-2] will yield a negative index. This is the error you get.
Reply


Messages In This Thread
RE: How to terminate a list of inputs with a set value? SOS - by ibreeden - Sep-18-2019, 07:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The game should now run and terminate once the board is full, but still can’t identif rango 0 1,477 Jul-22-2021, 03:24 AM
Last Post: rango
  Is there a way to not terminate a running thread in python Contra_Boy 3 2,014 May-05-2020, 09:38 PM
Last Post: SheeppOSU
  Terminate a process when hotkey is pressed 66Gramms 0 2,271 Dec-24-2019, 06:41 PM
Last Post: 66Gramms
  How to terminate the caller fuction through callee? 100k 2 2,199 Nov-27-2019, 06:49 PM
Last Post: jefsummers
  how to terminate all the processes in C py2exe 0 2,097 Aug-02-2018, 04:31 AM
Last Post: py2exe
  lambda-Amazon EC2:Remove instance termination protection if enabled and terminate ins dragan979 0 3,382 Jun-13-2018, 09:48 AM
Last Post: dragan979
  Using Terminating Signal to Terminate Long Threads crcali 1 2,616 Apr-06-2018, 01:26 AM
Last Post: woooee
  Service that waits for another program to terminate hhh 1 2,580 Dec-15-2017, 01:39 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020