feat: add codewars kata highest and lowest /kata/554b4ac871d6813a03000035
This commit is contained in:
parent
0d15409b59
commit
d5e6e72775
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