Python Forum
Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
matching question
#3
(Nov-21-2017, 11:11 AM)heiner55 Wrote: You could use index():
https://www.tutorialspoint.com/python/list_index.htm

If not, you need two for-loops.

Why do I need two for loops?

If I look at the code it says first that bob successfully matches. Then the "name" and the "lookup" are both changed to "bill" but this time the value for match is not increased by 1.?
Reply


Messages In This Thread
matching question - by takaa - Nov-21-2017, 10:14 AM
RE: matching question - by heiner55 - Nov-21-2017, 11:11 AM
RE: matching question - by takaa - Nov-21-2017, 11:35 AM
RE: matching question - by snippsat - Nov-21-2017, 01:55 PM
RE: matching question - by heiner55 - Nov-21-2017, 02:29 PM
RE: matching question - by takaa - Nov-21-2017, 03:10 PM
RE: matching question - by heiner55 - Nov-21-2017, 03:19 PM
RE: matching question - by takaa - Nov-21-2017, 04:11 PM
RE: matching question - by iFunKtion - Nov-21-2017, 07:01 PM
RE: matching question - by takaa - Nov-23-2017, 10:14 AM
RE: matching question - by heiner55 - Nov-23-2017, 08:33 AM
RE: matching question - by heiner55 - Nov-23-2017, 11:34 AM

Forum Jump:

User Panel Messages

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