I'm fcked, csc108 assignment 3 ##### Helper functions ##### # Add your helpers here ##### Required functions ##### def load_profiles(profiles_file:
View the step-by-step solution to:

Question

I'm fcked, csc108 assignment 3

12.png

##### Helper

functions #####


# Add your helpers here


##### Required functions #####

q1 1.png


def load_profiles(profiles_file: TextIO) -> Tuple[Dict[str, List[str]],

                         Dict[str, List[str]]]:

  """Return a two-item tuple containing a "person to friends" dictionary

  and a "person_to_clubs" dictionary with the data from profiles_file.


  NOTE: Functions (including helper functions) that have a parameter of type

     TextIO do not need docstring examples.

  """

  pass # Remove me when you've implemented this function




def get_average_club_count(person_to_clubs: Dict[str, List[str]]) -> float:

  """Return the average number of clubs that a person in person_to_clubs

  belongs to.


  >>> get_average_club_count(P2C)

  1.6

  """

  pass # Remove me when you've implemented this function

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes