Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to print directory files (& timestamps)
Post: RE: How to print directory files (& timestamps)

(Dec-29-2022, 04:20 AM)ndc85430 Wrote: We aren't here to write the code for you. I'm curious about what you did find in a search, though. What about the os module? For a start, it contains a functio...
chatguy Homework 3 1,362 Dec-29-2022, 06:31 AM
  Question Thread: How to print directory files (& timestamps)
Post: How to print directory files (& timestamps)

Please pardon my simple question (Unfortunately Google searches haven't been much luck) With Python, how do I print all files in a directory where: 1) Filenames start with FAIL* 2) Show file time...
chatguy Homework 3 1,362 Dec-29-2022, 12:19 AM
    Thread: How to convert string to variable?
Post: RE: How to convert string to variable?

Wow, Gribouillis.... that is an awesome idea!! It's going to involve some work elsewhere in the code, but I am definitely going to follow this in my next update. Thank you!!
chatguy General Coding Help 5 2,419 Apr-12-2022, 05:31 PM
  Thumbs Up Thread: How to convert string to variable?
Post: RE: How to convert string to variable?

Thank you, Dean!! You are awesome!! I was banging my head on this for hours, and you figured out in 5 seconds! Thank you!! In case anyone else is searching for this answer, I found I needed to ma...
chatguy General Coding Help 5 2,419 Apr-12-2022, 05:28 PM
  Question Thread: How to convert string to variable?
Post: How to convert string to variable?

Hi all, I've had a hard time searching for this answer (Google suggests something different than I'm looking for). VERY early in my code, I have dicts read in from a JSON file, resulting in: AWfr...
chatguy General Coding Help 5 2,419 Apr-12-2022, 04:58 PM
    Thread: How to gather specific second-level items from a list
Post: RE: How to gather specific second-level items from...

(Dec-17-2021, 07:36 AM)nealc Wrote: I added commas after the itemnamex and saved in a file ex.json. from json import load if __name__ == '__main__': with open("ex.json") as f: data = load(f) ...
chatguy General Coding Help 2 1,558 Dec-17-2021, 05:05 PM
  Question Thread: How to gather specific second-level items from a list
Post: How to gather specific second-level items from a l...

Hi All, I'm trying to create a combined list of itemNames under "run", within each of the headers, if anyone can help please. Example List (from a JSON file I've read in): { "Header1":{ "skip":[ ...
chatguy General Coding Help 2 1,558 Dec-17-2021, 06:32 AM
  Question Thread: How to extract multiple text from a string?
Post: How to extract multiple text from a string?

Hi All, Would anyone know how to create a list of a substring prior to "==>" ? Example String input: '\r\nExecuting: /usr/bin/dig +short -4 @120.17.72.174 a hello.com\r\n\r\nSun Feb 28 06:49:59...
chatguy General Coding Help 2 2,380 Feb-28-2021, 07:00 AM
    Thread: How to make a 3D List of Excel Spreadsheets?
Post: RE: How to make a 3D List of Excel Spreadsheets?

(Jan-23-2021, 11:04 PM)deanhystad Wrote: So you want a list of spreadsheets? data[sheet][row][column]? Sheet 0 Sheet 1 Sheet 2 1, 2, 3, 9, 8, 7, a, b, c, 4, 5, 6, 6, 5, 4, d, e, f, 7,...
chatguy General Coding Help 4 2,754 Jan-24-2021, 04:44 AM
    Thread: How to make a 3D List of Excel Spreadsheets?
Post: RE: How to make a 3D List of Excel Spreadsheets?

Going by the example you gave, please if possible, for myList to be populated similar to: myList = [ [ 'Sheet 0', ['1','2','3'], ['4','5','6'], ['7','8','9'] ], [ 'Sheet 1', ['9','8','7'], ['6','5','...
chatguy General Coding Help 4 2,754 Jan-23-2021, 11:12 PM
  Question Thread: How to make a 3D List of Excel Spreadsheets?
Post: How to make a 3D List of Excel Spreadsheets?

Hi- I've been failing greatly trying to get different ideas working, or finding how to do this. Is there a snippet of code I may please use (using something like XLRD, Pandas or OpenPyxl) to allow ...
chatguy General Coding Help 4 2,754 Jan-23-2021, 10:50 PM
    Thread: OpenPyxl: How to iterate through each Column (in 1 row) to find a value?
Post: OpenPyxl: How to iterate through each Column (in 1...

When using Python OpenPyxl, how would I iterate through each Column (in only one row) to find a value? Here's my current (failing) attempt -- (There appears to be an error in (at least) my 2nd for lo...
chatguy General Coding Help 2 18,075 Jul-26-2020, 05:19 AM

User Panel Messages

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