TUPLES (the values are represented in ( ) ) Write a program which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number. Suppose the...




  1. TUPLES (the values are represented in ( ) )



Write a program which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number. Suppose the following input is supplied to the program: 34, 67, 55, 33, 12, 98. Then, the output should be: ['34', '67', '55', '33', '12', '98'] ('34',67', '55', '33', '12', '98').


Here, you need to find out how you obtain the numbers input from the user. You just need to assign these numbers as a representation of list and tuple. Attach a screenshot of the code and output.


Show a major difference array list and tuple through the code.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here