Please help me with the following question:
There is a string:
Courses :- Thank You, Help me with this question, Have a good day
I would like to ignore any punctuation between "Thank You" and "Courses". what I am doing for now is:
if "Courses" in c:
print(c)
idx = c.index('-')
while not c[idx].isalpha():
idx += 1
old_courses = c[idx:]
print(old_courses)
I can get: Thank You, Help me with this question, Have a good day
But there will be any other punctuations between "Thank You" and "Courses". What can I do to get the same thing like above? Maybe can use string module.
THANK YOU!!!