Python Forum
But why? Because of the for loop?
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
But why? Because of the for loop?
#4
With the first word, "search", the second if is activated, then the for loop continues and when it reaches "pictures", the first if is activated as well.

If you want to stop the scanning of words after the first or second if is True, then add the break statement in line 16 and 20.
Reply


Messages In This Thread
But why? Because of the for loop? - by hello_its_me - Dec-30-2017, 12:47 PM
RE: But why? Because of the for loop? - by squenson - Dec-30-2017, 01:21 PM
RE: But why? Because of the for loop? - by squenson - Dec-30-2017, 05:16 PM

Forum Jump:

User Panel Messages

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