In facilitated diffusion, __________ proteins provide openin…

In facilitated diffusion, __________ proteins provide openings in the plasma membrane for substances to flow through without changing structure, and __________ proteins allow passage of substances through the plasma membrane after undergoing a subtle change in shape.

QUESTION #1 [8 pts]: Suppose you have two dictionaries, d1 a…

QUESTION #1 : Suppose you have two dictionaries, d1 and d2, each key is integer. In d1, values may be of any type (e.g., a fruit name, a number, etc.), while in d2, values are always integers representing counts. Write a single list comprehension named result that: Iterates only over keys present in both d1 and d2. Includes only those keys k for which d1 is a string (a fruit name) and d2 is an odd integer. For each such key, produces a string of the form: “k.fruit: count ”   Example:             >>> d1 = { 1 :  “apple” ,  2 :  100 ,  3 :  “banana” ,  4 :  None , 5 : “cherry ”} >>> d2 = { 1 :  5 ,  2 :  10 ,  3 :  15 ,  4 :  20 ,  5 :  25} >>> r e s u l t = >>> r e s u l t

Question #6 [15 pts]: Character Counter Using Higher-Order F…

Question #6 : Character Counter Using Higher-Order Function Write a higher-order function count(ch) that takes a single character ch as its input and returns another function. The returned function should take a string s and return the number of times ch appears in s. >>> count(‘s’)(‘mississippi’) 4 >>> count(‘z’)(‘hello’)       0 >>> count(‘x’)(‘example text’) 2

QUESTION #5 [15 pts]: Write the Python code to implement the…

QUESTION #5 : Write the Python code to implement the function largest_2(num_list). This function takes a non-empty list of numbers and returns the two largest elements in num_list in linear time (worse case runtime is O(n), where n is the size of num_list). The two largest values can be arranged in any order. You can assume num_list has at least three elements. Remember that if a function has a runtime of O(2n), it is considered O(n) . To get the most partial credit for this question, we recommend including the runtime of each line you write.   >>> largest_2() (9, 8) >>> largest_2() (82, 12)