Python Forum
Homework advice - Boolean function, whole-word values
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Homework advice - Boolean function, whole-word values
#3
Your bird_types variable is a string so if the combo of letters is anywhere "in" it, you'll get a true.
I think you meant to make it a list with each word in quotes separated by commas. That will give yo the results you're expecting.
"So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth!" - Tim the Enchanter
Reply


Messages In This Thread
RE: Homework advice - Boolean function, whole-word values - by Marbelous - May-07-2020, 03:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic Boolean homework help StillAnotherDave 9 3,769 Nov-27-2019, 12:38 PM
Last Post: StillAnotherDave
Exclamation A function that takes a word and a string of forbidden letters pooyan89 5 4,901 Jun-12-2019, 09:44 PM
Last Post: nilamo
  Storing Minimum List of values from a recursive function sigsegv22 1 2,627 Sep-10-2018, 01:25 PM
Last Post: ichabod801
  Help with homework problem - iterating a function midnitetots12 4 3,648 Feb-21-2018, 10:51 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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