Succesfully tested (leading and trailing spaces; 0)Maybe use split like thisCode:
x='255,255'y=x.split(",")print (y)for z in y: print (z)
Code:
x='255,255, 0, 155, 0 , 355'y=x.split(",")print (y)for z in y: print (int(z))
Statistics: Posted by dbrion1 — Wed Jan 10, 2024 10:52 am