Python Forum
Python: Automated Script to Read Multiple Files in Respective Matrices
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python: Automated Script to Read Multiple Files in Respective Matrices
#6
Why do you need to change the variable? Just leave it as "a" each time through the loop as you deal with each matrix in turn.

In general you don't want to create dynamic top-level variables. If you need a dynamic name, make it the key of a dictionary.
Reply


Messages In This Thread
RE: Python: Automated Script to Read Multiple Files in Respective Matrices - by bowlofred - Jul-02-2020, 11:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to generating multiple json files using python script dzgn989 4 345 May-10-2024, 03:09 PM
Last Post: deanhystad
  Using a script to open multiple shells? SuchUmami 9 762 Apr-01-2024, 10:04 AM
Last Post: Gribouillis
  Eliminate entering QR - Whatsapp web automated by selenium akanowhere 1 3,179 Jan-21-2024, 01:12 PM
Last Post: owalahtole
  python convert multiple files to multiple lists MCL169 6 1,729 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  splitting file into multiple files by searching for string AlphaInc 2 1,037 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,616 Jun-29-2023, 11:57 AM
Last Post: gologica
Question Need help for a python script to extract information from a list of files lephunghien 6 1,221 Jun-12-2023, 05:40 PM
Last Post: snippsat
  script to calculate data in csv-files ledgreve 0 1,199 May-19-2023, 07:24 AM
Last Post: ledgreve
  Merging multiple csv files with same X,Y,Z in each Auz_Pete 3 1,313 Feb-21-2023, 04:21 AM
Last Post: Auz_Pete
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 1,023 Feb-15-2023, 05:34 PM
Last Post: zsousa

Forum Jump:

User Panel Messages

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