This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ASTERISK = 42 | |
| def strip(input, char): | |
| return bytearray([b for b in input if b != char]) | |
| def double(input): | |
| output = bytearray() | |
| buffer = bytearray() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def safe_get(lst, idx, default = ' '): | |
| try: | |
| return lst[idx] | |
| except IndexError: | |
| return default | |
| a = "пиі" | |
| b = "рвт" | |
| max_len = max(len(a), len(b)) |