Aug-22-2019, 02:50 PM
Not meaning to obfuscate, just a reminder that in the Homework forum that goal is to lead you to the answer rather than give you the answer. An "A Ha!" moment is much better for the learning process.
OK, in more detail. In line 16 he is looping through intruder_log, but by using
OK, in more detail. In line 16 he is looping through intruder_log, but by using
for key in intruder_loghe is only getting the first value, where he really needs both (the name and the count) so
for name, count in intruder_log:will pull both values. NOW you can print the results using the format method