Advertisement
here2share

# Tk_flatten_uneven_for_integers.py

Jan 30th, 2020
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # Tk_flatten_uneven_for_integers.py
  2.  
  3. def oRGB(n):
  4.     n = re.findall(r"-?\d+", str(n))
  5.     return [int(z) for z in n]
  6.  
  7. print(oRGB(1))
  8. print(oRGB([1,2]))
  9. print(oRGB([1,2,[(3,4),5],[99,100],-1]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement