Answer:
The Python code is explained below
Explanation:
#Define the dictionary
#canadian_capitals.
canadian_capitals = {
'Alberta': 'Edmonton',
'British Columbia': 'Victoria',
'Ontario': 'Toronto',
'Manitoba': 'Winnipeg'
}
#Define the dictionary
#mexican_capitals.
mexican_capitals = {
'Puebla': 'Puebla',
'Sonora': 'Hermosillo',
'Tabasco': 'Villahermosa',
'Hidalgo': 'Pachuca'
}
#Define the dictionary
#us_capitals.
us_capitals = {
'Alabama': 'Montgomery',
'Alaska': 'Juneau',
'Georgia': 'Atlanta',
'California': 'Sacramento'
}
#De-hash the values of
#the dictionaries using
#the **operator and add them
#to the dictionary nafta_capitals.
nafta_capitals = {**canadian_capitals, **mexican_capitals, **us_capitals}
#Print the dictionary
#nafta_capitals.
print(nafta_capitals)
first off, good for Tom, he found Brainly. And now the answers (in order)
1. internal
2. internal
3. external
4. external
5. internal
Answer:
wdadawdawdawdawdawdawdawsdwfawf
Explanation:
Program 4: But I haven’t taken Calculus yet! OK – we admit, this one might look nasty, but read on because it’s not that bad. One of the things that computing folks do A LOT (especially CS students) is analyze how long a program takes to run. In the first step, something might take 1 unit of CPU time. The second step might take 2, the third 3 and so on. Mathematically, that would be expressed by the "summation" operator as this: ∑???? ???? ????=1 This is may look complex, but all it’s saying is that i goes from 1 to n and you sum all those numbers together. So, if (n = 10), ∑???? ???? ????=1 = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55 Fortunately, this reduces to a simple formula. When summing numbers from 1-n, the sum is: (n+1)*n/2 Why? It’s all in how you "pair" the numbers together. In the example above, we could pair (1+10) =11, (2+9)=11, (3+8)=11 and so on. That is, we have n/2 "pairs" of (n+1). Your task is, without using a loop (which we haven’t covered yet), to write a program that asks the user for a number, then prints out the sum of 1 to that number. If you use a loop, you will receive no credit
I would say a because it was lots of letters and numbers