-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.py
31 lines (25 loc) · 826 Bytes
/
extension.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
File: extension.py
------------------
This is a file for creating an optional extension program, if
you'd like to do so. For the server extension, write your code in
extension_server.py
"""
def main():
"""
You should write your code for this program in this function.
Make sure to delete the 'pass' line before starting to write
your own code. You should also delete this comment and replace
it with a better, more descriptive one.
"""
pass
def custom_sort_key(string):
lower_string = str.lower(string)
if lower_string.startswith("'"):
return ord(lower_string[1]), lower_string[1:]
else:
return ord(lower_string[0]), lower_string
# This provided line is required at the end of a Python file
# to call the main() function.
if __name__ == '__main__':
main()