Help!!
So I need some help with programming (python)
Here's my code:
import itert...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.04.2021 19:40 Yeetadab1974
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](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 09:30
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
You know the right answer?
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 24.01.2020 18:31
![question](/tpl/images/cats/istoriya.png)
History, 24.01.2020 18:31
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 24.01.2020 18:31
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 24.01.2020 18:31
![question](/tpl/images/cats/mat.png)
Mathematics, 24.01.2020 18:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)