-
Notifications
You must be signed in to change notification settings - Fork 0
/
meraki-list.QReport Card.py
102 lines (68 loc) · 1.08 KB
/
meraki-list.QReport Card.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Report Card
# Sum of the nested list given above -1142
# Please see this list :
marks=[
[78, 76, 94, 86, 88],
[91, 71, 98, 65, 76],
[95, 45, 78, 52, 49]
]
i=0
b=[]
sum=0
while i<len(marks):
j=0
s=0
while j<len(marks[i]):
s+=marks[i][j]
j=j+1
sum+=s
i+=1
# b.append(sum)
print(sum)
# Sum of the nested list given above - 965.
marks=[[78, 76, 94, 86, 88],
[91, 71, 98, 65],
[95, 45, 78]
]
i=0
sum=0
while i<len(marks):
j=0
s=0
while j<len(marks[i]):
s+=marks[i][j]
j=j+1
sum+=s
i=i+1
print(sum)
# Sum of the nested list given above - 1324
a=[
[78, 76, 94, 86, 88],
[91, 71, 98, 65],
[95, 45, 78],
[87, 67, 49, 68, 88]
]
i=0
sum=0
while i<len(a):
j=0
s=0
while j<len(a[i]):
s=s+a[i][j]
j+=1
sum+=s
i+=1
print(sum)
# a=[12,123]
# i=0
# b=[]
# while i<len(a):
# a[i]=str(a[i])
# j=0
# s=0
# while j<len(a[i]):
# s+=int(a[i][j])
# j+=1
# b.append(s)
# i+=1
# print(b)