Answer:
Explanation:
The code that would best accomplish this task using a while loop would be the following:
list1 = [8, 3, 4, 5, 6, 7, 9]
accum = 0
n = 0
while n < 7:
accum += list1[n]
n += 1
This code will continue throughout the list1 array and add every value to the accum variable.
Answer:
C
Explanation:
C seems to be the most logical choice for a "good" choice.
It makes the most sense.
Answer:
def nametag(first_name, last_name):
return("{} {[0]}.".format(first_name, last_name))
print(nametag("Jane", "Smith"))
# Should display "Jane S."
print(nametag("Francesco", "Rinaldi"))
# Should display "Francesco R."
print(nametag("Jean-Luc", "Grand-Pierre"))
# Should display "Jean-Luc G."
Explanation:
First you must think about that the question ask about the first letter for last_name, remember [0] is the first letter not [1], the other part is about format function and its order
The top one is C. I can't answer the others lol.
Hi there,
In order to solve this, we have to know what Moore's law is. Moore's Law states that the number of transistors in an IC (Integrated Circuit) doubles every two years. Since the density doubles every two years and there are 3 two year periods between 1970 and 1976, we would multiply 1,200 by 2 to the power of the number of two year periods. In this case, that would look like 1,200*2³. Since 2³ is equal to 8, we can rewrite this as 1,200*8. Multiplying these, we get 9,600, thus, there would be 9,600 transistors in a computer chip during 1976.
Have a good night,
Jamie