Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test(string, x):
- r = []
- for ch in string:
- if ord(ch) % x == 0:
- r.append(ch)
- return ''.join(r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement