I have a python string in the following format:
"x1 y1\n x2 y2\n x3 y3\n ..."
I would like to transform this into a list points = [p1, p2, p3,...], where p1, p2 and p3 are [x1,y1], [x2,y2] and [x3,y3] etc.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Think you can use the following: