I\'m trying to write a function that returns the highest and lowest number in a list.
def high_and_low(numbers): return max(numbers), min(numbers) print(hi
use numbers_list=[int(x) for x in numbers.split()] and use numbers_list in min() and max(). split() turns '1 23 4 5' into ['1','23','4','5']; and by using a list comprehension all the strings get converted to integers.
numbers_list=[int(x) for x in numbers.split()]
numbers_list
min()
max()
split()
'1 23 4 5'
['1','23','4','5']