From 8a9f5d4b9f5a8217b86b0c58e1dea6bc3efc6cf8 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 7 Sep 2021 21:40:13 -0400 Subject: [PATCH] [F] courseinfo: Also split by invisible character space --- courseinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/courseinfo.py b/courseinfo.py index 85ac76a..ead1955 100644 --- a/courseinfo.py +++ b/courseinfo.py @@ -21,4 +21,4 @@ def get_course_info(id: str): if __name__ == '__main__': sep = input('Please enter the separator (Eg. a comma): ') l = input(f'Please enter course codes separated by "{sep}": ') - [print(get_course_info(it.strip())['full'] + ' ') for it in l.split(sep)] + [print(get_course_info(it.strip().strip('​ '))['full'] + ' ') for it in l.split(sep)]