subject

Write a function ``pretty`` that pretty prints a list. The function should return a string with the elements written with digits and separated by a single comma without spaces, and the string "[]" for the empty list. The ``list1`` above should print ``[]`` The ``list2`` above should print ``5`` The ``list3`` above should print ``3,1,4,1,5``

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Identify at least three types of characteristics that you were asked about as you the computer identify a fruit.
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
You know the right answer?
Write a function ``pretty`` that pretty prints a list. The function should return a string with the...
Questions
Questions on the website: 13722367