Skip to content

Instantly share code, notes, and snippets.

View Getup1's full-sized avatar
🤔
Thinking

Anton Getup1

🤔
Thinking
  • Ukraine
View GitHub Profile
#!/usr/bin/env python3
def matcher(pattern):
def sieve(string):
if len(string) != len(pattern):
return False
matched = True
for a, b in zip(pattern, string):
if a != '*' and a != b:
matched = False
break