Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
one time loop
#3
what will the break statements do without the loop? the goal is to define where control ends up at when each if clause with a break reaches that break statement. a large bulk of the code i will release later (after completion and testing) is the stack of if clauses. without a break statement, they would run together unless i code it with elif. but i need other code among them, so elif won't work.

in other languages, i'd be using a branch instruction or a goto statement to do this.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
one time loop - by Skaperen - Jul-25-2018, 03:39 PM
RE: one time loop - by Larz60+ - Jul-25-2018, 05:18 PM
RE: one time loop - by Skaperen - Jul-25-2018, 09:14 PM
RE: one time loop - by DeaD_EyE - Jul-26-2018, 01:29 AM
RE: one time loop - by Skaperen - Jul-26-2018, 03:45 AM
RE: one time loop - by Larz60+ - Jul-25-2018, 09:24 PM
RE: one time loop - by Skaperen - Jul-26-2018, 12:53 AM
RE: one time loop - by stranac - Jul-26-2018, 07:09 AM
RE: one time loop - by Skaperen - Jul-26-2018, 02:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to measure execution time of a multithread loop spacedog 2 2,960 Apr-24-2021, 07:52 AM
Last Post: spacedog
  Updating a matrix in a time interval inside a for loop vp1989 4 2,975 May-17-2020, 07:15 PM
Last Post: vp1989
  Loop independent of excecution time of a script Forelli 8 3,950 Feb-02-2020, 10:49 PM
Last Post: snippsat
  How to Display Multiple Time Tables With While Loop ZQ12 2 2,233 Nov-10-2019, 04:15 AM
Last Post: ZQ12
  Time execution of a "for loop" with zip different in 2 equivalent context sebastien 1 1,965 Oct-11-2019, 11:07 AM
Last Post: sebastien
  output list reducing each time through loop 3Pinter 6 3,623 Mar-19-2019, 01:31 PM
Last Post: perfringo
  Display 20 records at a time,data structure or loop pythonds 1 2,538 Mar-29-2018, 11:09 AM
Last Post: DeaD_EyE
  best pythonic one-time loop Skaperen 2 2,836 Feb-26-2018, 04:02 AM
Last Post: Skaperen
  For Loop, execute one time for every loop iteration dragan979 2 4,525 Feb-20-2018, 12:02 PM
Last Post: dragan979
  Code issue with time remaining loop. Python3 deboerdn2000 11 8,956 May-04-2017, 04:53 PM
Last Post: deboerdn2000

Forum Jump:

User Panel Messages

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