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
Another (faster) way using mapping:
def high_and_low(numbers: str): #split function below will use space (' ') as separator numbers = list(map(int,numbers.split())) return max(numbers),min(numbers)