You are viewing a single comment's thread. Return to all comments →
` Import re
for _ in range(int(input())): for hex_code in re.findall(r"(?<=.)#[\dA-Fa-f]{3,6}", input()): print(hex_code) `
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Hex Color Code
You are viewing a single comment's thread. Return to all comments →
` Import re
for _ in range(int(input())): for hex_code in re.findall(r"(?<=.)#[\dA-Fa-f]{3,6}", input()): print(hex_code) `