In the first case it is checking if w is in 'o' which it is not so it doesn't return False,
moves on the the next letter in the loop, o is in 'o' so returns False.
moves on the the next letter in the loop, o is in 'o' so returns False.
A function that takes a word and a string of forbidden letters
|
|
Messages In This Thread |
A function that takes a word and a string of forbidden letters - by pooyan89 - Jun-12-2019, 07:04 PM
RE: A function that takes a word and a string of forbidden letters - by Yoriz - Jun-12-2019, 07:12 PM
RE: A function that takes a word and a string of forbidden letters - by pooyan89 - Jun-12-2019, 07:18 PM
RE: A function that takes a word and a string of forbidden letters - by Yoriz - Jun-12-2019, 07:23 PM
RE: A function that takes a word and a string of forbidden letters - by pooyan89 - Jun-12-2019, 07:26 PM
RE: A function that takes a word and a string of forbidden letters - by nilamo - Jun-12-2019, 09:44 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Searching for parts of a string or word | Ulumulu | 8 | 3,816 |
Mar-15-2021, 07:02 PM Last Post: Ulumulu |
|
Homework advice - Boolean function, whole-word values | musicjoeyoung | 4 | 3,275 |
May-07-2020, 06:10 PM Last Post: musicjoeyoung |
|
Trying to extract Only the capitol letters from a string of text | Jaethan | 2 | 2,191 |
Feb-27-2020, 11:19 PM Last Post: Marbelous |
|
count unique letters in a word | sunny_awesome | 4 | 8,751 |
Jun-06-2019, 07:15 PM Last Post: kotter |
|
Counting only letters in a string | PraiseYAH | 2 | 4,566 |
Jul-20-2018, 11:22 AM Last Post: ichabod801 |
|
Count Letters in a Sentence (without using the Count Function) | bhill | 3 | 5,217 |
Jun-19-2018, 02:52 AM Last Post: bhill |