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 2,237 May-10-2024, 03:09 PM
Last Post: deanhystad
  Using a script to open multiple shells? SuchUmami 9 3,350 Apr-01-2024, 10:04 AM
Last Post: Gribouillis
  python convert multiple files to multiple lists MCL169 6 3,290 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  splitting file into multiple files by searching for string AlphaInc 2 2,742 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 8,053 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 2,561 Jun-12-2023, 05:40 PM
Last Post: snippsat
  script to calculate data in csv-files ledgreve 0 2,342 May-19-2023, 07:24 AM
Last Post: ledgreve
  Merging multiple csv files with same X,Y,Z in each Auz_Pete 3 3,048 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,629 Feb-15-2023, 05:34 PM
Last Post: zsousa
  How to read in mulitple files efficiently garynewport 3 1,595 Jan-27-2023, 10:44 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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