For the best experience, increase the window size or view on a laptop or desktop device
Last updated: Pending
Title | ||
|---|---|---|
Loading... | ||
1/1
No questions are available yet
For the best experience, increase the window size or view on a laptop or desktop device
Title | ||
|---|---|---|
Loading... | ||
Given a file path, you are asked to read this file, then parse it, and finally filter the results to get what they want.
color date number
green 2001/02/23 8
purple 2006/05/11 1
white 2019/02/17 200
sheet = SpreadSheet("a.txt")
sheet.filter(['color', '=', 'green']) # should return [['green' , 2001/02/03, 8]]
Note that colors may have duplicates
Given a file path, you are asked to read this file, then parse it, and finally filter the results to get what they want.
color date number
green 2001/02/23 8
purple 2006/05/11 1
white 2019/02/17 200
sheet = SpreadSheet("a.txt")
sheet.filter(['color', '=', 'green']) # should return [['green' , 2001/02/03, 8]]
Note that colors may have duplicates
Output