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.
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â?
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnprogra...