Python Forum
Best way to accommodate unknown number of variables?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to accommodate unknown number of variables?
#9
No. As above the correct solution is to use containers (at least in Python) because those are dynamic in size. Resorting to dynamically generated variables just gives you code that's hard to understand and maintain.
Skaperen likes this post
Reply


Messages In This Thread
RE: Best way to accommodate unknown number of variables? - by ndc85430 - May-23-2022, 06:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create X Number of Variables and Assign Data RockBlok 8 1,153 Nov-14-2023, 08:46 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

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