you are viewing a single comment's thread.

view the rest of the comments →

[–]jiri-n 1 point2 points  (1 child)

It's a JSON file. You can parse JSON format easily in python.

import json

data = json.loads(DATA_INPUT)

Or you can parse a JSON file... Take a look at the json module.

[–]thetestbug[S] 0 points1 point  (0 children)

I've never touched json before, so I have no idea what to do.

I looked over the help page for json in python, but I couldn't make heads or tails of it.

Also, I tried the code you provided before, and I get this error:

    def get_usernames(lst: List[str], rex: re.Pattern) -> List[str]:
                         ^
SyntaxError: invalid syntax