Answer to Question #335649 in Python for Kiran

Question #335649

Write a program to print the following output,


Sample Input1

2

5

1 2 3 4 5

6

2 20 3 30 4 40


Sample Output1

33

201


1
Expert's answer
2022-05-01T19:06:28-0400

n = int(input())


a = int(input())


f = [int(i) for i in input().split()]


b = int(input())


s = [int(i) for i in input().split()]


print(n * sum(f) + 3)


print(n * sum(s) + 3)


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS