You can use built-in functions like max() and min() or iterate through the list to find the maximum and minimum values.
numbers = list(map(int, input("Enter a list of integers separated by space: ").split()))
max_num = max(numbers)
min_num = min(numbers)
print(f"Max: {max_num}, Min: {min_num}")
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.