Python Forum
How can I find a string in sequence (with Booleans)?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I find a string in sequence (with Booleans)?
#1
I receive a String. For example in here I have : Mystring= ‘alohrefllluqoo’ I am going to find the ‘hello’ in that string by using Booleans. Is it possible?

the final output would be 'YES', cause when we remove extra letter we can see the 'Hello' word in first string.

and if the sequence and the word can not be found, the output will be 'NO'
Reply


Messages In This Thread
How can I find a string in sequence (with Booleans)? - by go127a - Apr-23-2019, 11:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Find and Replace numbers in String giddyhead 2 3,135 Jul-17-2022, 06:22 PM
Last Post: giddyhead
  Find string between two substrings, in a stream of data xbit 1 2,733 May-09-2021, 03:32 PM
Last Post: bowlofred
  Regular expression: cannot find 1st number in a string Pavel_47 2 3,107 Jan-15-2021, 04:39 PM
Last Post: bowlofred
  .loc with Booleans Mark17 1 2,024 Aug-27-2020, 03:00 PM
Last Post: snippsat
  find a string in a field in MongoDB Leon79 2 3,327 Jul-19-2020, 09:20 PM
Last Post: menator01
  Help to find a string and read the next lines crlamaral 4 3,507 Mar-19-2020, 09:24 AM
Last Post: Larz60+
  How To Find an Opening and Closing String, Copying Open/Close/Contents to New File davidshq 1 2,645 Mar-03-2020, 04:47 AM
Last Post: davidshq
  How to Find & Count String Patterns Between two Markers in a HTML file ahmedwaqas92 3 3,883 Aug-19-2019, 10:12 AM
Last Post: ahmedwaqas92
  Find string and add character - newbi PyDK 1 2,686 May-15-2019, 01:22 PM
Last Post: ichabod801
  String Method 'find(...)'. ClassicalSoul 3 3,153 Feb-27-2019, 12:24 PM
Last Post: buran

Forum Jump:

User Panel Messages

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