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

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.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

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)
See more answers at brainly.com
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

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.
NVM I found it, its the len() attribute lol.
for clarity sake len() is a function not an attribute

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question