Answer:
20
Explanation:
During the first iteration for the list [1, 4], numB = 1.
During the first iteration of the list [2, 3], numA = 2.
answer = answer + numA + numB
= 0 + 2 + 1
= 3
Since the list [2, 3] is in a nested loop, we need to first finish iterating the whole list before numB iterates to the next number, so numA = 3 this time and numB still stays at 1.
answer = answer + numA + numB
= 3 + 3 + 1
= 7
Now, numB moves to 4 and numA starts back at 2 again.
answer = answer + numA + numB
= 7 + 2 + 4
= 13
numB still says at 4 and numA moves to 3 since it is in a nested loop:
answer = answer + numA + numB
= 13 + 3 + 4
= 20
print(answer) will print the output 20.
Hope this helps :)
D, a customer service oriented, problem solver with strong communication skills
Answer:
Option C i.e., ODS/Data warehouse is the correct answer.
Explanation:
The following option is correct because ODS/Data warehouse owns that resulting data from that project which is related to research. ODS transfer the data of the database to the data warehouses before processing that data or information in the database which is collected from the different-different sources
Here is code in Python.
# variable to store sum of numbers from 1 to 10
sum=0
for i in range(1,11):
#calculating the sum
sum+=i
#printing the sum
print("sum of numbers from 1 to 10 is:")
print(sum)
Explanation:
Declare a variable "sum" to store the sum of all the numbers from 1 to 10.
In the for loop i will iterate from 1 to 10 only and each value of i is added to
"sum". then it will print the sum of all the number.
Output:
sum of numbers from 1 to 10 is:
55