subject

Help!! So I need some help with programming (python)

Here's my code:
import itertools
def sumOfLargest(a1, a2, a3):
a1 = [int(x) for x in a1.split()]
a2 = [int(x) for x in a2.split()]
a3 = [int(x) for x in a3.split()]
print(sum(map(max, itertools. zip_longest(a1, a2, a3, fillvalue=0
if __name__ == '__main__':

a1 = input()

a2 = input()

a3 = input()

But I get this error:

Traceback (most recent call last):
File "Solution. py", line 34, in
result = sumOfLargest(a1, a2, a3)
File "Solution. py", line 24, in sumOfLargest
print(sum(map(max, itertools. zip_longest((a1,a2,a3), fillvalue=0
TypeError: unsupported operand type(s) for +: 'int' and 'list'

Does anyone know why? Or how to fix it?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Asalesman at a high end computer security firm want to sell you a proactive cover for your passport, which contains an rfid tag inside storing your sensitive information. the salesperson's solution cost only $79.99 and protects your passport from being read via radio waves while it is in your pocket. explain how you can achieve the same thing under $3.00
Answers: 3
question
Computers and Technology, 22.06.2019 00:00
Which requirement is an appropriate reason for a business to use it tools
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
You know the right answer?
Help!! So I need some help with programming (python)

Here's my code:
import itert...
Questions
question
Mathematics, 19.08.2019 16:10
Questions on the website: 13722367