Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Is it possible to print only a specific answer from subprocess?
Post Body

Hi, so i’m using subprocess to execute a file called Login in another file let’s called it execute.py. So I call Login inside execute.py using subprocess, and basically Login prints “correct” or incorrect”.

Let’s say the file login only accepts a certain amt of passwords. For example List_ = [“Hello”, “1234”, “Goodbye”, “Abc”], in this file let’s say I run the login file using subprocess on each of these terms, and it prints “Correct” for 2 of them and “Incorrect” for two of them. Is it possible to only print the “Correct”?

Author
User Disabled
Account Strength
0%
Disabled 5 months ago
Account Age
4 years
Verified Email
No
Verified Flair
No
Total Karma
530
Link Karma
351
Comment Karma
105
Profile updated: 1 day ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago