diff --git a/Level 2a: Elevator Maintenance - Python Solution.py b/Level 2a: Elevator Maintenance - Python Solution.py new file mode 100644 index 0000000..759b446 --- /dev/null +++ b/Level 2a: Elevator Maintenance - Python Solution.py @@ -0,0 +1,6 @@ +def solution(l): + parsing = [e.split(".") for e in l] + sorting = [map(int, e) for e in parsing] + sorted_ints = sorted(sorting) + sorted_join=[('.'.join(str(ee) for ee in e)) for e in sorted_ints] + return sorted_join