Write a Python program to create a set from a given list of integers. Return the created set.
Example 1:
Input: [1, 2, 3, 4, 5]
Output: {1, 2, 3, 4, 5}
Example 2:
Input: [5, 7, 8, 9, 10]
Output: {5, 7, 8, 9, 10}
Use the set() function to convert a list to a set.
def create_set(lst):
return set(lst)
NOTEOwing to browser caching, any code input into the Trinket IDE might carry over across page refreshes or when transitioning between different questions. To commence with a clean slate, either click on the 'Reset Button' found within the IDE's Hamburger icon (☰) menu or resort to using Chrome's Incognito Mode.