Page 1 of 1

Python: search Function

Posted: Fri Aug 15, 2025 6:06 pm
by The Jason
The search function searches for instances of something to see if they are there.

Code: Select all

import re
 
forum_name = "Hosting Chatter"

is_ing_in_forum_name = re.search("ing", forum_name)

If(is_ing_in_forum_name)

print(Yes.)

else

print(No.)