Given:
sample_list = [87, 45, 41, 65, 94, 41, 99, 94]
Expected Outcome:
unique items [87, 45, 41, 65, 99] tuple (87, 45, 41, 65, 99) min: 41 max: 99
Solution:
sample_list = [87, 52, 44, 53, 54, 87, 52, 53] print("Original list", sample_list) sample_list = list(set(sample_list)) print("unique list", sample_list) t = tuple(sample_list) print("tuple ", t) print("Minimum number is: ", min(t)) print("Maximum number is: ", max(t))
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer