# on 04-Oct-2018 (Thu)

#### Flashcard 3412283231500

Question
In python, [...] are immutable sequences of arbitrary objects.
tuples

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412286377228

Question
In python, create a tuple, tup, which has just one element: 1.
tup = (1,)

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412291620108

Question
In python, trying to modify an element of a tuple will give you a [...]
TypeError

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412294765836

Question
In python, what is the shortest way (least lines) to swap the value of x and y (e.g. x = 1, y = 2, and you want to change it to y = 1, x = 2)?
x,y = y,x

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412297911564

Question
In python, you have dictionary, d={'a':1, 'b':2}, how to you get the number of items in d (which in this case would result in value of 2)?
len(d)

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412301057292

Question
In python, you have dictionary, d = {'a':1, 'b':2}, how do you create a new dictionary, e, that is a copy of d that you can change independendtly without effecting d?
e = d.copy()

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412304203020

Question
In python, create a big dictionary, d, with keys from 0 to 99, where all keys have initial value of 'a', i.e.: d = {0:'a', 1:'a', 2:'a',..., 99:'a'}
d = dict().fromkeys(range(100), 'a')

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412307348748

Question
In python, you have dictionary, d, if you want to retrieve from it item with key 'c', which you are not sure exists, how to you do it safely (i.e. such that no Exception is thrown)?
d.get('c')

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412310494476

Question
In python, you have dictionary, d = {'a':1, 'b':2}, what exception is thrown if you do d['c']?
KeyError

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412313640204

Question
In python, you have dictionary, d = {'a':1, 'b':2}, write excactly what d.items() return?
[('a',1), ('b',2)]

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412316785932

Question
In python, you have dictionary, d = {'a':1, 'b':2}, how do you get a list of all its keys (i.e. ['a', 'b'])?
d.keys()

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412319931660

Question
In python, you have dictionary, d = {'a':1, 'b':2}, how do you delete item with key 'a' from d, and get the value of 'a' returned, all in one command (and do it in safe way so None is returned if key 'a' does not exist)?
d.pop('a', None)

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 3412323863820

Question
In python, you have dictionary, d = {'a':1, 'b':2, 'c':3}, and you have dictionary, d2 = {'d': 4, 'e': 5}, what is easiest way (one line) to add all items of d2 to d, such that d ends up being {'a':1, 'b':2, 'c':3, 'd':4, 'e':5}
d.update(d2)

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Annotation 3413230095628

 List the congressional committees and government agencies that regulate health care in the United States. 2. Identify the regulatory and oversight bodies with jurisdiction over health system delivery of care. 3. Explain recent federal legislative and regulatory activity that affects the delivery of health care. 4. Describe the regulatory actions that govern the prescription drug approval process and the conduct of human subjects’ research. 5. Describe national quality initiatives aimed at improving health care delivery and patient health outcomes. 6. Explain medication policy implications at an insti- tutional level.

#### pdf

cannot see any pdfs

#### Annotation 3413231668492

 Congress is bicameral, with two legislative chambers: the Senate and the House of Representatives.

#### pdf

cannot see any pdfs

#### Annotation 3413233241356

 Appropriations Committee writes the legislation that allocates federal funds to the many government agencies, departments, and organizations on an annual basis and, in particular, funds discretionary programs. b. Finance Committee has jurisdiction over issues that pertain to taxation and health programs under the Social Security Act including Medicare, Medicaid, and the Children’s Health Insurance Program. c. Health, Education, Labor and Pensions (HELP) Committee, as it pertains to health, authorizes agencies, institutes, and programs under the Department of Health and Human Services (DHHS), which includes the U.S. Food and Drug Administration (FDA), National Institutes of Health (NIH), and Centers for Disease Control and Prevention (CDC). d. Committee on Veterans’ Affairs oversees issues related to veterans’ affairs (VA), including the VA health system. e. Aging Committee was initially established as a temporary committee but transitioned to a permanent, special committee without legislative authority for matters relating to older Americans. f. Legislation is reviewed by the committee with the most jurisdiction over the provisions in the bill. For example, the Pharmacy and Medically Underserved Areas Enhancement Act (S. 314) introduced in the Senate in 2015 was referred to the Committee on Finance because it amends the Medicare program.

#### pdf

cannot see any pdfs

#### Annotation 3413234814220

 Senate is composed of 100 elected, voting members. Legislation and tasks are divided into 20 stand- ing committees, 68 subcommittees, and 4 joint committees. The committees that have jurisdiction over health-related policy include the following: a. Appropriations Committee writes the legislation that allocates federal funds to the many government agencies, departments, and organizations on an annual basis and, in particular, funds discretionary programs. b. Finance Committee has jurisdiction over issues that pertain to taxation and health programs under the Social Security Act including Medicare, Medicaid, and the Children’s Health Insurance Program. c. Health, Education, Labor and Pensions (HELP) Committee, as it pertains to health, authorizes agencies, institutes, and programs under the Department of Health and Human Services (DHHS), which includes the U.S. Food and Drug Administration (FDA), National Institutes of Health (NIH), and Centers for Disease Control and Prevention (CDC). d. Committee on Veterans’ Affairs oversees issues related to veterans’ affairs (VA), including the VA health system. e. Aging Committee was initially established as a temporary committee but transitioned to a permanent, special committee without legislative authority for matters relating to older Americans. f. Legislation is reviewed by the committee with the most jurisdiction over the provisions in the bill. For example, the Pharmacy and Medically Underserved Areas Enhancement Act (S. 314) introduced in the Senate in 2015 was referred to the Committee on Finance because it amends the Medicare program

#### pdf

cannot see any pdfs

#### Annotation 3413236387084

 House of Representatives is composed of 435 elected, voting members and six delegates from the U.S. territories or from Washington, D.C., with nonvoting privileges. Legislation and tasks are divided into 20 standing committees, 4 joint committees, and 1 select committee. The committees with jurisdiction over health-related policy include the following: a. Appropriations has jurisdiction similar to that listed above. b. Ways and Means has jurisdiction over taxation and most programs authorized by the Social Security Act, similar to the Senate Finance Committee. c. Energy and Commerce is the oldest standing committee of the House of Representatives. It has over- sight of the DHHS and is similar to the Senate HELP committee. d. Veterans’ Affairs oversees issues related to VA. e. Legislation is sent to any committee that has jurisdiction over any of the provisions in the bill. For example, the companion bill to S. 314, the Pharmacy and Medically Underserved Areas Enhancement Act (H.R. 592) introduced in the House in 2015, was referred to the Subcommittees on Health in both the Energy and Commerce and Ways and Means committees.