Last active
August 11, 2024 08:50
-
-
Save fritzfrancisco/2f342e5e460267cfdc41fa9a8a5a6ded to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
def create_response(): | |
'''Create polited and humble response to reviewer suggestions''' | |
a = ['y', 'u', 'e', 'n', 'f', ' ', '?', 'a', 'p', ' ', 'r', 's', 'd', 'u', 'o', 't', 'i', ' ', 'c', 'u', 'g', 'k', 'i'] | |
b = [4, 17, 2, 12, 8, 3, 21, 0, 18, 7, 1, 15, 20, 6, 5, 16, 19, 14, 10, 9, 13, 11, 12] | |
out = ''.join([x for _,x in sorted(zip(b,a))]) | |
return out | |
if __name__ == '__main__': | |
resp = create_response() | |
print(resp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment