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 13:30
Qr or codes let any piece of print host a link to online information.
Answers: 3
question
Computers and Technology, 22.06.2019 10:00
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
You know the right answer?
Help!! So I need some help with programming (python)

Here's my code:
import itert...
Questions
question
Mathematics, 25.07.2020 23:01
Questions on the website: 13722367