1 a -[ ] ab - [ ) s for i in (Data.head(200) and Data1.tail(200)): 16 if i[-2] not in a: a.append(i[-1]) b.append(i[-2]) 3 else : b[a.index(1) + -i[a] trans - max[b] ecusid = a[b.index(trans(a)) ] 1 print("Hurray. The most number of transactions is done by Customer 18:", cusida" .He has made ", trans" , transactions. He wi File "", line 15 b[a.index(1) + -i[a] ntaxError: invalid syntax

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 13RQ: How is an array stored in main memory? How is a linked list stored in main memory? What are their...
icon
Related questions
Question
Task 2
In [120]:
1 a = [ ]
2
3 b - [ ]
4
5 for i in (Data.head(200) and Datal.tail(200)):
6.
7
if i[-2] not in a:
a.append(i[-1])
10
11
b.append(i[-2])
12
13 else :
14
15
b[a.index(1) + =i[a]
16
17
trans - max[b]
18
19 cusid =
a[b.index(trans(a)) ]
20
21 print("Hurray. The most number of transactions is done by Customer 10:", cusid+" .He has made ", trans"
transactions. He wi
File "kipython-input-120-66585211c59a>", line 15
b[a.index(1) + =i[a]
SyntaxError: invalid syntax
Transcribed Image Text:Task 2 In [120]: 1 a = [ ] 2 3 b - [ ] 4 5 for i in (Data.head(200) and Datal.tail(200)): 6. 7 if i[-2] not in a: a.append(i[-1]) 10 11 b.append(i[-2]) 12 13 else : 14 15 b[a.index(1) + =i[a] 16 17 trans - max[b] 18 19 cusid = a[b.index(trans(a)) ] 20 21 print("Hurray. The most number of transactions is done by Customer 10:", cusid+" .He has made ", trans" transactions. He wi File "kipython-input-120-66585211c59a>", line 15 b[a.index(1) + =i[a] SyntaxError: invalid syntax
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Hash Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning