Python Forum
help comparing strings
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help comparing strings
#4
I agree with @ibreeden with regard to the changes that should be made. That being said, your code actually works as expected. You only need to print the results.
print (excs4("BIB","ZIP"))
print (excs4("BIB","PIP"))
Output:
False True
Reply


Messages In This Thread
help comparing strings - by xander - Dec-28-2021, 10:12 PM
RE: help comparing strings - by Larz60+ - Dec-29-2021, 01:16 AM
RE: help comparing strings - by ibreeden - Dec-29-2021, 09:30 AM
RE: help comparing strings - by BashBedlam - Jan-04-2022, 04:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strings inside other strings - substrings OmarSinno 2 3,721 Oct-06-2017, 09:58 AM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

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