Python Forum
checking a string for two instances of ..
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
checking a string for two instances of ..
#1
i get a string foo that will be a problem if there are two or more instances of the particular characters in another string bar. so if bar has 'apz' then foo must not have more than one 'a' and not more than one 'p' and not more than one 'z'/ i'm looking for a small nifty easy to read way to check foo for this.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
checking a string for two instances of .. - by Skaperen - May-13-2020, 06:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Checking if a string contains all or any elements of a list k1llcod3 1 1,190 Jan-29-2023, 04:34 AM
Last Post: deanhystad
  String format checking? MuntyScruntfundle 1 2,468 Mar-06-2019, 12:01 PM
Last Post: buran
  checking if there are numbers in the string Sp00f 11 8,299 Apr-06-2017, 08:47 AM
Last Post: buran

Forum Jump:

User Panel Messages

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