[Solved] Python: Does ‘in’ operator support ‘*’ wildcards? [closed]


You’re gonna want to use a regular expression instead.

import re

vendor="AFL TELECOMMUNICATIONS"

if re.search('AFL TELECOM.*', vendor):
    print("Match")
else:
    print("No Match")

solved Python: Does ‘in’ operator support ‘*’ wildcards? [closed]