Created
October 30, 2019 10:46
-
-
Save giasuddin90/8d85519735d395c0fcb9cc4e961baea4 to your computer and use it in GitHub Desktop.
python script for checking ASCII. Result will be provided in Boolean.
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
| __author__ = 'giasuddin' | |
| def is_ascii(s): | |
| return all(ord(c) < 128 for c in s) | |
| if __name__ == '__main__': | |
| test=is_ascii('রিকোয়ারমেন্') | |
| print(test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment