Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_flatten_uneven_for_integers.py
- def oRGB(n):
- n = re.findall(r"-?\d+", str(n))
- return [int(z) for z in n]
- print(oRGB(1))
- print(oRGB([1,2]))
- print(oRGB([1,2,[(3,4),5],[99,100],-1]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement