Question
Write a function, called congress_session_members, that takes a congress session # session_number (int) and a file_name (str). It should load the data created in question
Write a function, called congress_session_members, that takes a congress session # session_number (int) and a file_name (str). It should load the data created in question 6 # and search for all the senators that were part of that particular session of congress. # The function should write the resulting senators to a file called # congress_session{session_number}.json and returns a list of every senator that was # part of the Senate for the given session_number. It should return an empty # list if none of the senators were members for that congress. # (Congress session 1 should have nobody in it (except maybe Chuck Grassley # and Mitch McConnell)). # The numbers of senators for each Congress session available. # session_number 116 = 33 # session_number 117 = 64 # session_number 118 = 100 # session_number 119 = 66 # session_number 120 = 34 # all other session numbers should be empty
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started