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

[ad_1]

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")

[ad_2]

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