Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outer loop not running
#3
idbadge = [[0 for i in range(x)] for i in range(y)]
may be re-written as
id_badge = [[0] * columns for _ in range(rows)]
Using one-letter variable - in general - is one of the most successful methods to write unreadable code. Reading PEP-8 is recommended
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
Outer loop not running - by ted_gress - Aug-25-2018, 05:08 AM
RE: Outer loop not running - by Larz60+ - Aug-25-2018, 07:43 AM
RE: Outer loop not running - by volcano63 - Aug-25-2018, 07:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pandas Outer merge skollu826 2 349 Apr-20-2024, 06:28 PM
Last Post: deanhystad
  help RuntimeError: no running event loop marpaslight 5 4,067 Oct-18-2022, 10:04 PM
Last Post: marpaslight
  can Inner Class reference the Outer Class's static variable? raykuan 6 6,230 Jul-01-2022, 06:34 AM
Last Post: SharonDutton
  bleak library RuntimeError: This event loop is already running alice93 3 4,300 Sep-30-2021, 08:06 AM
Last Post: alice93
  loop running indefinitely shantanu97 6 2,730 Sep-29-2021, 08:03 PM
Last Post: deanhystad
  Running A Loop Until You See A Particular Result knight2000 6 32,112 Sep-04-2021, 08:55 AM
Last Post: knight2000
  Running loop at specific frequency mdsousa 3 6,188 Apr-21-2021, 11:22 AM
Last Post: jefsummers
  RuntimeError: This event loop is already running newbie2019 2 7,067 Sep-30-2020, 06:59 PM
Last Post: forest44
  Unindent does not match any outer intendation level -error MaartenRo 3 2,373 Jun-28-2020, 11:46 AM
Last Post: MaartenRo
  HELP! unindent does not match any outer indentation level blackjesus24 2 2,053 Jan-29-2020, 08:00 AM
Last Post: blackjesus24

Forum Jump:

User Panel Messages

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