Please help me with Python Suppose that I have a string (input) a = '0,200, 15,550, 25,977, 99,1489\n' I want the output of this string to be: b = [0, 200, 15, 550, 25, 977, 99, 1489] c = [(0, 200),...


Please help me with Python


Suppose that I have a string (input)


a = '0,200, 15,550, 25,977, 99,1489\n'


I want the output of this string to be:


b = [0, 200, 15, 550, 25, 977, 99, 1489]


c = [(0, 200), (15, 550), (25, 977), (99, 1489)]


d = ['0', '200', '15', '550', '25', '977', '99', '1489']


How can I do this in Python for each case?



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here