PatternFind/aaasenin
PatternFind/lowerchik
t1def pattern_find(string, pattern):t1def pattern_find(string, pattern):
2    for start_i in range(len(string) - len(pattern) + 1):2    for start_i in range(len(string) - len(pattern) + 1):
3        b = True3        b = True
4        for i in range(len(pattern)):4        for i in range(len(pattern)):
5            if not (pattern[i] == '@' or pattern[i] == string[start_i + i]):5            if not (pattern[i] == '@' or pattern[i] == string[start_i + i]):
6                b = False6                b = False
7                break7                break
8        if b:8        if b:
9            return start_i9            return start_i
10    return -110    return -1
11string = input()11string = input()
12pattern = input()12pattern = input()
13print(pattern_find(string, pattern))13print(pattern_find(string, pattern))
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op