I have a very long String of multiple choice questions like this:
8. OVERT (R.R.B. 1996)
(a) Deep (b) Shallow
(c) Secret (d) Unwritten
9. ACCORD (Railways, 1991)
(a) Solution (b) Act
(c) Dissent (d) Concord
I want to place this options [(a)(b)(c)(d)] beside the question with a tab like this :
8. OVERT (R.R.B. 1996) (a) Deep (b) Shallow (c) Secret (d) Unwritten
9. ACCORD (Railways, 1991) (a) Solution (b) Act (c) Dissent (d) Concord
I've used "\b" before the (a) like this:
newString = QuestionString.replace("(a)", "\b(a)")
But this only removes some spaces before the (a).But I want to remove the line break before it.Can someone suggest me how can I get rid of it using python ?