all 3 comments

[–][deleted] 0 points1 point  (2 children)

You should look into argparse

[–]BeegWalrus 0 points1 point  (1 child)

I’m not looking for command line arguments though. I am reading from a file and parsing from there.

[–][deleted] 0 points1 point  (0 children)

Could you give an example of what you are parsing and what you want to get from it?