Created
January 27, 2020 22:50
-
-
Save WhiskersReneeWe/04b591398cc49f76cc0886daf6e4ad98 to your computer and use it in GitHub Desktop.
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
t = "57888888882339999" | |
str1 = "6539923335" | |
str4 = '234253876334' | |
def is_NumberStream(str): | |
import re | |
for i in t: | |
pattern = i * int(i) | |
if re.search(pattern, str): | |
return True | |
else: | |
return False | |
is_NumberStream(str4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment