Question: Problem 1. Determine the output of the following code: a= ([10.11],[12.13.14], {15,16}) [100] z.extend (x) x [2].add Hello) x = a[0] x. append (100) x10:2]-[200.300]
![Problem 1. Determine the output of the following code: a= ([10.11],[12.13.14],](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f52b532e322_44266f52b52c1377.jpg)
Problem 1. Determine the output of the following code: a= ([10.11],[12.13.14], {15,16}) [100] z.extend (x) x [2].add Hello) x = a[0] x. append (100) x10:2]-[200.300] a 1. append (a [2]) a [1][3]. add (50) print (a) print (x) print(z) Explain this result (draw pictures) Problem 2. Write a function that takes as input strings of the form '32F" or 100C, which represent temperatures in the Fahrenheit (F) or Celsius (C) scale. The return vale of the function should be a string where the input has been converted to the other temperature scale. Include the trailing F or C to indicate the scale of the output Problem 3. Write a function char.table(s), where s is a string. The function should produce a table that shows the characters in the string and the number of occurrences of each character. Make the table nicely format- ted, using right justification for the numbers (check out the format command.) List the characters in order (the order in the character encoding). Give some examples of the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
