Next we use the nltk module to count the words in the text. The Don barely survives, which leads his son Michael to begin a violent mob war against Sollozzo and tears the Corleone family apart.
This does not please Sollozzo, who has the Don shot down by some of his hit men. He approaches Don Corleone about it, but, much against the advice of the Don's lawyer Tom Hagen, the Don is morally against the use of drugs, and turns down the offer. Drug dealer Virgil Sollozzo is looking for Mafia families to offer him protection in exchange for a profit of the drug money. All of Michael's family is involved with the Mafia, but Michael just wants to live a normal life. His youngest son Michael has returned from WWII just in time to see the wedding of Connie Corleone (Michael's sister) to Carlo Rizzi. Vito Corleone is the aging don (head) of the Corleone Mafia Family. When we run the above program we get the following output − We consider a text file for this purpose which contains the summary of a Hollywood movie. In the below example we show programs to count the words in a paragraph using two different approaches. That makes it necessary to count the number of words as well as lines with a specific type of words in a given text. In the pop-up menu, select the Bullets and Numbering option.While reading the text from a source, sometimes we also need to find out some statistics about the type of words used. You can also access the Bullet and Numbering window by placing your text cursor on a bulleted or numbered line and right-clicking in the Word document. At the bottom of the window, you can preview how the indentation sizing looks and make changes accordingly until you get it the way you want. In the window that opens, adjust the indent size for the bullet position and the text position.In the Bullets and Numbering window, click the Customize button on one of the first three tabs, depending on the type of list you are changing.Click the Format menu at the top of the Word program and select the Bullets and Numbering option.Place your cursor in a bulleted or numbered line in the document.In the Adjust List Indents window, change the Bullet position to adjust the bullet indent size or change the Text indent to adjust the text indent size after a bullet.Right-click the bullet and select Adjust List Indents in the pop-up menu.Click one of the bullets at the level you want to change in the document.To adjust the spacing between the bullet and the text in a list, you may need to adjust the Left Tab Stop in the Ruler. To view the Paragraph window mentioned in the above section, click the small down arrow indicated by the red arrow in the picture below.Īdjusting the bullet and numbering indentation
Adjust the indent settings in the Paragraph section.If you're using a newer version of Microsoft Word that uses the Ribbon, such as Word 2007 or 2013, do the following. Adjust the indent on the Ribbon in Word 2007 and later You can also adjust the first line indent and hanging indent size under the Special option in the Indentation section.Īt the bottom of the Paragraph settings window, you can preview the look of the indent sizes you are setting and make changes accordingly until you get it the way you want. You can also place the cursor in the paragraph, right-click with your mouse, and chose Paragraph.Īs seen below in the Paragraph window, under the Indentation section, the left and right indent settings can be adjusted. To view this window, double-click the markers in the ruler, click Format and then Paragraph. Changing indents in the Paragraph windowĪnother way to adjust the indents is to view the Paragraph settings.
If a large indent is created when pressing the Tab and adjusting the indent on the Ruler doesn't work, adjust the Left Tab Stop in the Ruler.