Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to do String match
#1
Hi,
I have the following array of string:

kaman
veeru
sri
balc
kaman
tryi
yua
sri

Now, I want to the two thing
Question1:
I want to find the locations(index) of "sri" in the list

Queastion2:
I want to know if the given name exist in the list or not (for example: "kaman"  exist in the list or not)
Thanks in advance,
Reply


Messages In This Thread
How to do String match - by SriRajesh - Apr-02-2017, 11:53 AM
RE: How to do String match - by zivoni - Apr-02-2017, 12:15 PM
RE: How to do String match - by zivoni - Apr-02-2017, 01:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  if statement string match javiopro 2 1,676 Sep-04-2021, 05:56 PM
Last Post: javiopro
  string match Kristenl2784 1 1,469 Jul-28-2020, 03:14 PM
Last Post: Kristenl2784
  regex match in a string batchen 4 3,261 Jan-20-2020, 08:48 AM
Last Post: batchen

Forum Jump:

User Panel Messages

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