Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Listing files with glob.
Post: RE: Listing files with glob.

Ok, thank you all for the responses. I couldn't do it with glob so I filtered the files inside a loop. Thanks for the help!
MathCommander General Coding Help 9 4,941 Oct-26-2020, 02:04 AM
    Thread: Listing files with glob.
Post: RE: Listing files with glob.

I disagree. My glob sentence has only one argument because before of this sentence I have execute a os.chdir sentence to change the current working directory to the correct path. I know that I used su...
MathCommander General Coding Help 9 4,941 Aug-10-2020, 04:59 PM
    Thread: Listing files with glob.
Post: RE: Listing files with glob.

The pattern is dependent of the variables initial and final. For the initial and final that I showed before the glob sentence would be files_list = glob.glob('*[000000-010000].txt')I know what is wro...
MathCommander General Coding Help 9 4,941 Aug-10-2020, 03:39 PM
    Thread: Listing files with glob.
Post: Listing files with glob.

Hi. I have a directory wich contains a set of files with the following format "name" + "six digits number" + ".txt" The following names are examples of this format dog000001.txt cat000054.txt lio...
MathCommander General Coding Help 9 4,941 Aug-10-2020, 02:47 PM
    Thread: Generating all words of maximun length.
Post: RE: Generating all words of maximun length.

(Jul-12-2020, 05:48 AM)bowlofred Wrote: If you want to generate all passwords of length 5, you could use itertools.product. Repeat for other lengths. from itertools import product, islice import s...
MathCommander General Coding Help 4 2,364 Jul-12-2020, 06:09 AM
    Thread: Generating all words of maximun length.
Post: RE: Generating all words of maximun length.

I know that is one of the possible uses of the regular expressions (probably the main use) but I dont know if also it can be used to generate strings. But my question is more general. Is there a easy ...
MathCommander General Coding Help 4 2,364 Jul-12-2020, 05:39 AM
    Thread: Generating all words of maximun length.
Post: Generating all words of maximun length.

Hello! I am working in a python challenge wich requires to decipher SHA-1 hashes wich correspond to password of a maximun length of 5 characters. The passwords can be only formed with characters betwe...
MathCommander General Coding Help 4 2,364 Jul-12-2020, 05:01 AM

User Panel Messages

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