anonymous
  • anonymous
Hi, I want to know how to find out the number of elements in a list. Is there a attribute to lists or tuples which determine the number of elements in a list or tuple? Thanks
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
This is regarding problem 3 in Problem Set 3. I am thinking of implementing two for loops which check key1 against all possible key2 values returned from the exactMatch function. since the exactMatch function returns a list, I want to find out the number of values or the length of the list.
anonymous
  • anonymous
NVM I found it, its the len() attribute lol.
anonymous
  • anonymous
for clarity sake len() is a function not an attribute

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
yes, you are right, of course. Thanks for making that distinction.

Looking for something else?

Not the answer you are looking for? Search for more explanations.