uebung1 #1
9
src/highest_and_lowest.py
Normal file
9
src/highest_and_lowest.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
def high_and_low(numbers):
|
||||||
|
s = numbers.split()
|
||||||
|
lst = []
|
||||||
|
|
||||||
|
for i in s:
|
||||||
|
lst.append(int(i))
|
||||||
|
lst.sort()
|
||||||
|
|
||||||
|
return str(lst[-1]) + " " + str(lst[0])
|
||||||
Loading…
x
Reference in New Issue
Block a user