Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialS B
4,497 PointsBreaking down the arguments passed in for print(find_min_max(data_from_csv[1:], 2, 'max'))
I'd like to understand the following statement in more depth: print(find_min_max(data_from_csv[1:], 2, 'max'))
Here's what I understand at this point (please correct me if I'm wrong) -
Argument 1: "data_from_csv[1:]" - This refers to the row to start at in the csv file? [1:] skips the header row, and goes straight into row two. In the csv file, this would be:
399795110 119.83 Burberry London checked silk tie 870 Burberry http://bim.shopstyle.com/pim/3c/27/3c27ee2884a1163917d41109fc3be1f3_best.jpg Nude silk tie from Burberry London featuring a classic pointed design and a contrasting black and red house check print. farfetch.com _print _silk
Argument 2: "2" - Refers to the column in the csv file...so in this case, it would be column two which is the 'priceLabel'?
I understand argument 3. No explanation needed.
Thanks!
Iain Simmons
Treehouse Moderator 32,305 PointsIain Simmons
Treehouse Moderator 32,305 PointsYeah I think that's pretty much it.
It's good to break it down and write it out though.
I have to admit, this course was a little tricky to follow along with...