Skip to content

Commit 4fb05b2

Browse files
committed
Display a clickable URL in mission 27 results
1 parent 7b7a9d4 commit 4fb05b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

27-speedboat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@ def extract_solution(data):
4646
url = "http://www.pythonchallenge.com/pc/hex/speedboat.html"
4747
pil_pixels, wand_pixels = get_pixel_values(url)
4848
data = filter_different_pixels(pil_pixels, wand_pixels)
49-
print("url : {}\nuser: {}\npass: {}".format(*extract_solution(data)))
49+
new_path, *credentials = extract_solution(data)
50+
new_url = f"{url.rsplit('/', 1)[0]}/{new_path}"
51+
print("url : {}\nuser: {}\npass: {}".format(new_url, *credentials))

0 commit comments

Comments
 (0)