Rishav KumarFebruary 20, 20230 Comments Write a function that takes in a list of integers and returns the second highest number. def second_highest(lst): lst = list(set(lst)) lst.sort() return lst[-2] if len(lst) >= 2 else None Write a function that takes in a list of strings and returns a dictionary where the keys are the strings and the values are the lengths of the strings. def str_lengths(lst): return {s: len(s) for s in lst}