Help!!
So I need some help with programming (python)
Here's my code:
import itert...
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?
Answers: 2
Computers and Technology, 22.06.2019 04:00
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
Computers and Technology, 22.06.2019 10:40
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
Mathematics, 30.06.2019 23:00
History, 30.06.2019 23:00
Mathematics, 30.06.2019 23:00
Mathematics, 30.06.2019 23:00
Arts, 30.06.2019 23:00
Social Studies, 30.06.2019 23:00
Mathematics, 30.06.2019 23:00
Health, 30.06.2019 23:00
Mathematics, 30.06.2019 23:00
Mathematics, 30.06.2019 23:00