Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assignment
#2
look at:

for i = in range(len('yahoo', 'google')):
    print('i')
your instructions were:
Quote:#1. Create a loop that goes through each item in the password list using range
I paraphrased.

The name of your password list is passwordlist ... so, don't you think the range should be:
for i in range(len(passwordlist))
and you should be printing out i, not 'i'

in other words:
for i in range(len(passwordlist)):
    print(i)
Don't try to over think, it's usually (not always) quite simple
Reply


Messages In This Thread
Assignment - by tinabina22 - Oct-06-2016, 12:58 AM
RE: Assignment - by Larz60+ - Oct-06-2016, 03:03 AM
RE: Assignment - by Skaperen - Oct-06-2016, 04:36 AM
RE: Assignment - by sparkz_alot - Oct-06-2016, 01:35 PM
RE: Assignment - by tinabina22 - Oct-06-2016, 09:54 PM
RE: Assignment - by nilamo - Oct-06-2016, 09:59 PM
RE: Assignment - by tinabina22 - Oct-06-2016, 11:10 PM
RE: Assignment - by Yoriz - Oct-06-2016, 11:35 PM
RE: Assignment - by tinabina22 - Oct-06-2016, 11:36 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020