-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpet.py
More file actions
31 lines (26 loc) · 714 Bytes
/
pet.py
File metadata and controls
31 lines (26 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# pet
# Author: Debbie Macrohon
# Description:
vars1 = [int(i) for i in input().split(" ")]
vars2 = [int(i) for i in input().split(" ")]
vars3 = [int(i) for i in input().split(" ")]
vars4 = [int(i) for i in input().split(" ")]
vars5 = [int(i) for i in input().split(" ")]
winner = 0
points = 0
array =[[0 for x in range(4)] for y in range(5)]
array[0] = vars1
array[1] = vars2
array[2] = vars3
array[3] = vars4
array[4] = vars5
for r in range(0,5):
totalrow = 0
for c in range(0,4):
#print(array[r][c])
totalrow +=array[r][c]
#print("total row {}".format(totalrow))
if points < totalrow:
winner = r+1
points = totalrow
print("{} {}".format(winner, points))