Answer:
Explanation:
(i) L1+L2 Error:
L1=[10,12,14]
L2=[20,22,24] # {n. 2 delete}
L1+L2
ans =
30 34 38
(ii) L1*2
ans =
20 24 28
(iii) L1
L1 =
10 12 14
Answer:
File, Edit, and View
Explanation:
These are the standard ones that come with the software.
Answer:
total = 0
for i in range(5):
score = int(input("Enter a score: "))
total += score
average = total / 5
print("The average is " + str(average))
Explanation:
*The code is in Python.
Initialize the total as 0
Create a for loop that iterates five times. Inside the loop, ask the user to enter a score. Add the score to the total (cumulative sum)
After the loop, calculate the average, divide the total by 5
Print the average
Answer:
Add more servers or decrease the amount of workstations