n range (ncol): if((i%2==0) and (i

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter3: Table Creation And Management
Section: Chapter Questions
Problem 11MC
icon
Related questions
Question

import csv
dicta = {}
csv_reader = csv.reader(f, delimiter=") for row in csv_reader:
ncol = len(row) for i in range (ncol):
if((i%2==0) and (i<ncol-1) and (int(row[i+1]) < 9 or
int(row[i+1])>17)):
dicta[row[i]] = row[i+1]
if len(dicta)==0:
dictionary
print("No anomaly login attemps")
else:
print("Anomaly login attempts: ",end = "")
for key, value in dicta.items():
print(key:value,end="").

print("\n")

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Time complexity
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning