How to ignore text inside ()
. In below example I have to ignore printing directions)
& Over right)
.
Example:
Text = "A paragraph is a self-contained unit of discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.The oldest classical British and Latin writing had little or no space between words and could be written in boustrophedon (alternating. directions). Over time, text direction (left to. right) became standardized, and word dividers and terminal punctuation became common."
Code I used:
for x in text.split('. '):
y=x.split(" ")
print(y[0])
Output for this code:
A A Though directions) Over right)