Questions

  1. How do we retrieve one element from a list? How do we retrieve the last element of the list without computing its length explicitly?
  2. How do we get all elements of a list—except the first one and the last one—in the reverse order?
  3. How do we merge two dictionaries, and what happens if some of the keys are the same in both of them?
  4. What is the best data structure to check for membership?
  5. Can we get the last element of the generator without getting all the others?
  6. How do we combine elements from N triplets into three arrays of N one by one?
  7. What is the shortest way to generate a list of specific dictionary properties—which are retrieved from a list of dictionaries—if a certain other property of each dictionary is in the set?
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset