AT&T interview question

Create R or Python code to pull data from table