[F] courseinfo: Also split by invisible character space

This commit is contained in:
Hykilpikonna
2021-09-07 21:40:13 -04:00
parent a62caa1aa0
commit 8a9f5d4b9f
+1 -1
View File
@@ -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)]