# ☼ Try using the Python interpreter as a calculator, and typing expressions like 12 / (4 + 1).
2 * 3 + 7
13
2 * (3 + 7)
20
26 ** 10
141167095653376
26 ** 100
3142930641582938830174357788501626427282669988762475256374173175398995908420104023465432599069702289330964075081611719197835869803511992549376
['Moby', 'Dick'] * 10
['Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick', 'Moby', 'Dick']
sentence3 = ['Moby', 'Dick', 'is', 'a', 'white', 'whale', '.']
sentence3 * 3
['Moby', 'Dick', 'is', 'a', 'white', 'whale', '.', 'Moby', 'Dick', 'is', 'a', 'white', 'whale', '.', 'Moby', 'Dick', 'is', 'a', 'white', 'whale', '.']
len(sentence3)
7
sorted(sentence3)
['.', 'Dick', 'Moby', 'a', 'is', 'whale', 'white']
set(sentence3)
{'.', 'Dick', 'Moby', 'a', 'is', 'whale', 'white'}
import nltk
from nltk.book import *
*** Introductory Examples for the NLTK Book *** Loading text1, ..., text9 and sent1, ..., sent9 Type the name of the text or sentence to view it. Type: 'texts()' or 'sents()' to list the materials. text1: Moby Dick by Herman Melville 1851 text2: Sense and Sensibility by Jane Austen 1811 text3: The Book of Genesis text4: Inaugural Address Corpus text5: Chat Corpus text6: Monty Python and the Holy Grail text7: Wall Street Journal text8: Personals Corpus text9: The Man Who Was Thursday by G . K . Chesterton 1908
len(text2)
141576
len(set(text2))
6833
text2.count("Elinor")
684
text2.count("Marianne")
566
text2.count("Edward")
262
text2.count("Willoughby")
215
text2.collocations()
Colonel Brandon; Sir John; Lady Middleton; Miss Dashwood; every thing; thousand pounds; dare say; Miss Steeles; said Elinor; Miss Steele; every body; John Dashwood; great deal; Harley Street; Berkeley Street; Miss Dashwoods; young man; Combe Magna; every day; next morning
my_string = 'Summer is over.'
my_string
'Summer is over.'
print(my_string)
Summer is over.
my_string + my_string
'Summer is over.Summer is over.'
my_string * 2
'Summer is over.Summer is over.'
print(my_string * 2)
Summer is over.Summer is over.
my_sent = ["Where", "is", "Wouter", "?"]
print(my_sent)
['Where', 'is', 'Wouter', '?']
my_sent
['Where', 'is', 'Wouter', '?']
' '.join(my_sent)
'Where is Wouter ?'
'Where is Wouter ?'.split()
['Where', 'is', 'Wouter', '?']
' '.join(my_sent + sentence3)
'Where is Wouter ? Moby Dick is a white whale .'
len(my_sent) + len(sentence3)
11
len(my_sent + sentence3)
11
sentence3[2]
'is'
sentence3[4]
'white'
sentence3.index('white')
4
sorted(word for word in set(text1) if word.startswith('b'))
['babbling', 'babe', 'babes', 'babies', 'baboon', 'baby', 'babyish', 'bachelor', 'bachelors', 'back', 'backbone', 'backbones', 'backed', 'background', 'backing', 'backs', 'backstay', 'backstays', 'backward', 'backwardly', 'backwards', 'backwoods', 'backwoodsman', 'bad', 'bade', 'badge', 'badger', 'badly', 'baffle', 'baffled', 'bag', 'baggage', 'bagged', 'bagging', 'bags', 'bailer', 'bailiff', 'bait', 'bake', 'baked', 'baker', 'bakers', 'balanced', 'balancing', 'bald', 'bale', 'baleen', 'baleful', 'balena', 'bales', 'baling', 'ball', 'ballast', 'ballasted', 'balloon', 'ballroom', 'balls', 'balmed', 'balmy', 'bamboo', 'bamboozingly', 'bamboozle', 'band', 'bandaged', 'bandages', 'bandana', 'bandbox', 'banded', 'bandied', 'banding', 'bands', 'banished', 'banister', 'bank', 'banked', 'banker', 'bankers', 'bankrupt', 'banks', 'banned', 'banner', 'bannered', 'banners', 'bannisters', 'banquet', 'banqueter', 'bantam', 'bantering', 'banteringly', 'banterings', 'baptised', 'baptism', 'baptismal', 'baptized', 'baptizo', 'bar', 'barb', 'barbacued', 'barbarian', 'barbarians', 'barbaric', 'barbarous', 'barbecue', 'barbed', 'barber', 'barbs', 'bare', 'barely', 'barest', 'bargain', 'barges', 'bark', 'barn', 'barnacle', 'barnacled', 'barometer', 'baron', 'baronial', 'barques', 'barred', 'barrel', 'barreler', 'barreller', 'barrels', 'barren', 'barricade', 'barriers', 'barrow', 'bars', 'bartered', 'bartering', 'base', 'based', 'basement', 'baser', 'bashful', 'bashfulness', 'basin', 'basis', 'bask', 'basket', 'basketed', 'baskets', 'bass', 'basso', 'bastions', 'bat', 'bath', 'bathe', 'bathed', 'bathing', 'baton', 'bats', 'battalions', 'batten', 'battened', 'batteries', 'battering', 'battery', 'battle', 'battled', 'battles', 'baulks', 'bawl', 'bawled', 'bawling', 'bay', 'bayonet', 'bayonets', 'be', 'beach', 'beached', 'beaches', 'beaching', 'beacon', 'beadle', 'beads', 'beak', 'beaked', 'beaker', 'beaks', 'beam', 'beamed', 'beams', 'bear', 'beard', 'bearded', 'beards', 'bearer', 'bearers', 'bearing', 'bearings', 'bears', 'bearskin', 'beast', 'beasts', 'beat', 'beaten', 'beater', 'beaters', 'beating', 'beats', 'beautiful', 'beauty', 'beaver', 'becalmed', 'became', 'because', 'becharmed', 'beckoned', 'beckoning', 'become', 'becomes', 'becoming', 'bed', 'bedarned', 'bedded', 'bedeadened', 'bedevilling', 'bedfellow', 'bedfellows', 'bedraggled', 'bedroom', 'beds', 'bedside', 'bedstead', 'bedsteads', 'bedwards', 'beech', 'beef', 'beefsteaks', 'beehive', 'been', 'beer', 'bees', 'befall', 'befallen', 'befell', 'befogged', 'befooled', 'before', 'befriend', 'befriended', 'befriending', 'beg', 'began', 'begat', 'beget', 'begets', 'beggar', 'beggars', 'begged', 'begging', 'begin', 'beginner', 'beginning', 'begins', 'begone', 'begotten', 'begrimed', 'begun', 'behalf', 'behavior', 'behead', 'beheaded', 'beheading', 'beheld', 'behind', 'behold', 'beholder', 'beholdest', 'beholding', 'beholds', 'behooves', 'being', 'beings', 'bejuggled', 'belayed', 'belaying', 'belfry', 'belie', 'belief', 'beliefs', 'beliest', 'believe', 'believed', 'believer', 'believers', 'believing', 'belike', 'bell', 'belled', 'bellied', 'bellies', 'bellows', 'bells', 'belly', 'belong', 'belonged', 'belongest', 'belonging', 'belongs', 'beloved', 'below', 'belt', 'belted', 'bench', 'benches', 'bend', 'bended', 'bending', 'beneath', 'benediction', 'benefit', 'benevolence', 'benevolent', 'benevolently', 'benignity', 'bent', 'bepatched', 'bequeathed', 'berg', 'berry', 'berth', 'berths', 'beseech', 'beseeching', 'beset', 'beside', 'besides', 'besieged', 'besmoked', 'besooted', 'bespattering', 'bespeak', 'bespeaking', 'best', 'bestir', 'bestirred', 'bestirring', 'bestow', 'bestowal', 'bestowed', 'bestows', 'bestreaked', 'bet', 'betake', 'betaken', 'betakes', 'bethink', 'bethinking', 'bethought', 'betoken', 'betokened', 'betokening', 'betrayed', 'better', 'betters', 'between', 'beverage', 'bevy', 'beware', 'bewildered', 'bewildering', 'bewitched', 'bewitching', 'beyond', 'biased', 'bible', 'bid', 'bidden', 'bidding', 'bids', 'bier', 'big', 'bigamist', 'bigger', 'biggest', 'bigness', 'bigot', 'bigotry', 'bilious', 'bill', 'billed', 'billeted', 'billiard', 'billion', 'billow', 'billows', 'bilocular', 'bind', 'binder', 'binding', 'binnacle', 'bipeds', 'birch', 'bird', 'birds', 'birth', 'birthmark', 'biscuit', 'biscuits', 'bison', 'bisons', 'bit', 'bite', 'bites', 'bitin', 'biting', 'bitingly', 'bits', 'bitter', 'bitterer', 'bitterest', 'bitterly', 'bitterness', 'bitters', 'bitts', 'bivouacks', 'black', 'blackberrying', 'blackened', 'blackest', 'blackish', 'blackling', 'blackness', 'blacks', 'blacksmith', 'blacksmiths', 'bladder', 'bladders', 'blade', 'bladed', 'blades', 'blame', 'blameworthy', 'blanched', 'bland', 'blandishments', 'blandness', 'blank', 'blanket', 'blanketing', 'blankets', 'blankness', 'blanks', 'blasphemer', 'blasphemous', 'blasphemy', 'blast', 'blasted', 'blasting', 'blasts', 'blaze', 'blazed', 'blazes', 'blazing', 'bleached', 'bleaching', 'bleak', 'bleakness', 'bled', 'bleed', 'bleeding', 'bleeds', 'blemish', 'blend', 'blended', 'blending', 'blent', 'bless', 'blessed', 'blessing', 'blew', 'blight', 'blighted', 'blind', 'blinded', 'blindest', 'blindfold', 'blinding', 'blindly', 'blinds', 'bliss', 'blister', 'blistered', 'blisteringly', 'blisters', 'blithe', 'bloated', 'block', 'blockhead', 'blocks', 'blood', 'blooded', 'bloodiest', 'bloodshed', 'bloodshot', 'bloodthirsty', 'bloody', 'bloom', 'blossom', 'blossoms', 'blotted', 'blotting', 'blow', 'blowing', 'blown', 'blows', 'blubber', 'blubbering', 'blue', 'blueness', 'bluer', 'bluff', 'bluish', 'blunder', 'blundering', 'blunted', 'bluntly', 'blurred', 'blush', 'blusterer', 'bo', 'boa', 'board', 'boarded', 'boarders', 'boarding', 'boards', 'boast', 'boasted', 'boastful', 'boasting', 'boasts', 'boat', 'boatheader', 'boatmen', 'boats', 'boatswain', 'bob', 'bobbed', 'bodices', 'bodied', 'bodies', 'bodiless', 'bodily', 'bodings', 'body', 'boggy', 'boil', 'boiler', 'boilers', 'boiling', 'boisterous', 'boisterously', 'bold', 'bolder', 'boldest', 'boldly', 'boldness', 'bolstering', 'bolt', 'bolted', 'bolting', 'bolts', 'bomb', 'bombazine', 'bond', 'bondsman', 'bone', 'boneless', 'bones', 'bonnet', 'bony', 'boobies', 'book', 'bookbinder', 'books', 'boom', 'boomed', 'booming', 'booms', 'boon', 'boot', 'booting', 'boots', 'boozy', 'border', 'bordered', 'bordering', 'borders', 'bore', 'bored', 'born', 'borne', 'borrow', 'borrowed', 'borrowing', 'bosky', 'bosom', 'bosoms', 'both', 'bottle', 'bottled', 'bottles', 'bottling', 'bottom', 'bottomed', 'bottomless', 'bough', 'boughs', 'bought', 'bounce', 'bounced', 'bouncing', 'bound', 'boundary', 'bounded', 'bounder', 'bounding', 'boundless', 'bounds', 'bounteous', 'bounties', 'bountiful', 'bountifully', 'bout', 'bow', 'bowed', 'bowels', 'bower', 'bowes', 'bowie', 'bowing', 'bowings', 'bowl', 'bowled', 'bowline', 'bowlines', 'bowling', 'bowls', 'bows', 'bowsman', 'bowsmen', 'bowsprit', 'bowstring', 'box', 'boxes', 'boxing', 'boy', 'boyhood', 'boys', 'brace', 'braced', 'braces', 'bracing', 'brack', 'brackish', 'brag', 'brags', 'braided', 'braiding', 'brain', 'brained', 'braining', 'brains', 'branch', 'branches', 'brand', 'branded', 'branding', 'brandy', 'brass', 'brats', 'bravadoes', 'brave', 'bravely', 'braver', 'bravery', 'braves', 'bravest', 'brawlers', 'brawn', 'brawniness', 'brawny', 'brazen', 'breach', 'breaches', 'breaching', 'bread', 'breadfruit', 'breadth', 'break', 'breakers', 'breakfast', 'breakfasting', 'breaking', 'breaks', 'breast', 'breastband', 'breasted', 'breasts', 'breath', 'breathe', 'breathed', 'breathes', 'breathest', 'breathing', 'breathless', 'breathlessly', 'breaths', 'bred', 'breeching', 'breed', 'breedeth', 'breeding', 'breeds', 'breeze', 'breezeless', 'breezelessness', 'breezes', 'breezing', 'breezy', 'bressed', 'brevet', 'brevity', 'brew', 'brewed', 'brewery', 'brick', 'bricks', 'bridal', 'bridals', 'bride', 'bridegroom', 'bridegrooms', 'brides', 'bridges', 'bridle', 'brief', 'briefly', 'brig', 'brigandish', 'brigger', 'bright', 'brighter', 'brightest', 'brightness', 'brigness', 'brigs', 'brilliance', 'brilliancy', 'brilliant', 'brim', 'brimful', 'brimmed', 'brimmers', 'brimming', 'brimstone', 'brindled', 'brine', 'bring', 'bringing', 'brings', 'brisk', 'bristles', 'bristling', 'brit', 'brittle', 'broad', 'broadly', 'broidered', 'broiled', 'broiling', 'broke', 'broken', 'brokenly', 'broker', 'bronze', 'brood', 'brooding', 'broods', 'brook', 'brooks', 'broom', 'brother', 'brotherhood', 'brotherly', 'brothers', 'brought', 'brow', 'browed', 'brown', 'brows', 'browsing', 'bruise', 'bruised', 'bruited', 'brunt', 'brush', 'brushed', 'brushing', 'brushwood', 'brutal', 'brute', 'brutes', 'bubble', 'bubbled', 'bubbles', 'bubbling', 'bubblingly', 'buck', 'bucket', 'buckets', 'buckle', 'buckler', 'bucklers', 'buckling', 'bucks', 'buckskin', 'bud', 'budding', 'budge', 'budged', 'buffalo', 'buffaloes', 'bugbear', 'builded', 'builder', 'builders', 'building', 'built', 'bulb', 'bulbous', 'bulbs', 'bulge', 'bulk', 'bulkhead', 'bulks', 'bulky', 'bull', 'bullets', 'bullied', 'bullies', 'bullocks', 'bulls', 'bully', 'bulwarks', 'bump', 'bumped', 'bumpers', 'bumping', 'bumpkin', 'bumpkins', 'bumps', 'bunch', 'bunched', 'bundle', 'bundles', 'bundling', 'bung', 'bunk', 'bunks', 'bunting', 'buoy', 'buoyancy', 'buoyant', 'buoyantly', 'buoyed', 'buoys', 'burden', 'burgher', 'burghers', 'burglar', 'burglaries', 'burial', 'buried', 'buries', 'burly', 'burn', 'burned', 'burning', 'burnish', 'burnished', 'burns', 'burnt', 'burrower', 'burst', 'bursting', 'burstingly', 'bury', 'burying', 'bush', 'bushel', 'bushy', 'busily', 'business', 'busks', 'bust', 'bustle', 'bustles', 'busts', 'busy', 'busying', 'but', 'butcher', 'butchering', 'butchers', 'butt', 'butter', 'buttered', 'butterflies', 'butterfly', 'butteries', 'butterless', 'button', 'buttoned', 'buttoning', 'buttons', 'buttress', 'buttressed', 'butts', 'buy', 'by', 'bye', 'bystanders']
list(range(10))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
list(range(10, 20))
[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
list(range(10, 20, 2))
[10, 12, 14, 16, 18]
list(range(20, 10, -2))
[20, 18, 16, 14, 12]
text9.index('sunset')
629
text9[629]
'sunset'
print(text9[621:644])
['THE', 'suburb', 'of', 'Saffron', 'Park', 'lay', 'on', 'the', 'sunset', 'side', 'of', 'London', ',', 'as', 'red', 'and', 'ragged', 'as', 'a', 'cloud', 'of', 'sunset', '.']
' '.join(text9[621:644])
'THE suburb of Saffron Park lay on the sunset side of London , as red and ragged as a cloud of sunset .'
sorted(set(sent1 + sent2 + sent3))
['.', 'Call', 'Dashwood', 'God', 'In', 'Ishmael', 'Sussex', 'The', 'and', 'been', 'beginning', 'created', 'earth', 'family', 'had', 'heaven', 'in', 'long', 'me', 'of', 'settled', 'the']
sorted(set(w.lower() for w in text1))
['!', '!"', '!"--', "!'", '!\'"', '!)', '!)"', '!*', '!--', '!--"', "!--'", '"', '"\'', '"--', '"...', '";', '$', '&', "'", "',", "',--", "'-", "'--", "';", '(', ')', '),', ')--', ').', ').--', '):', ');', ');--', '*', ',', ',"', ',"--', ",'", ",'--", ',)', ',*', ',--', ',--"', ",--'", '-', '--', '--"', "--'", '--\'"', '--(', '---"', '---,', '.', '."', '."*', '."--', ".'", '.\'"', '.)', '.*', '.*--', '.,', '.--', '.--"', '...', '....', '.]', '000', '1', '10', '100', '101', '102', '103', '104', '105', '106', '107', '108', '109', '11', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '12', '120', '121', '122', '123', '124', '125', '126', '127', '128', '129', '13', '130', '131', '132', '133', '134', '135', '14', '144', '1492', '15', '150', '15th', '16', '1652', '1668', '1671', '1690', '1695', '16th', '17', '1726', '1729', '1750', '1772', '1775', '1776', '1778', '1779', '1788', '1791', '1793', '18', '180', '1807', '1819', '1820', '1821', '1825', '1828', '1833', '1836', '1839', '1840', '1842', '1846', '1850', '1851', '19', '1st', '2', '20', '2000', '200th', '21', '21st', '22', '23', '24', '25', '26', '27', '275th', '28', '29', '2nd', '3', '30', '31', '31st', '32', '33', '34', '35', '36', '37', '38', '39', '3d', '4', '40', '400', '41', '42', '43', '44', '440', '45', '46', '47', '48', '49', '4th', '5', '50', '500', '51', '52', '53', '54', '55', '550', '56', '57', '58', '59', '5th', '6', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '7', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '8', '80', '800', '81', '82', '83', '84', '85', '86', '87', '88', '89', '890', '9', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', ':', ':"-', ':--', ':--"', ":--'", ';', ';"', ';"--', ';"--(', ";'", ';*', ';--', ';--"', ";--'", '?', '?"', '?"--', "?'", "?'--'", '?--', '?--"', "?--'", '[', ']', '_____________', 'a', 'aback', 'abaft', 'abandon', 'abandoned', 'abandonedly', 'abandonment', 'abased', 'abasement', 'abashed', 'abate', 'abated', 'abatement', 'abating', 'abbreviate', 'abbreviation', 'abeam', 'abed', 'abednego', 'abel', 'abhorred', 'abhorrence', 'abhorrent', 'abhorring', 'abide', 'abided', 'abiding', 'ability', 'abjectly', 'abjectus', 'able', 'ablutions', 'aboard', 'abode', 'abominable', 'abominate', 'abominated', 'abomination', 'aboriginal', 'aboriginally', 'aboriginalness', 'abortion', 'abortions', 'abound', 'abounded', 'abounding', 'aboundingly', 'about', 'above', 'abraham', 'abreast', 'abridged', 'abroad', 'abruptly', 'absence', 'absent', 'absolute', 'absolutely', 'absorbed', 'absorbing', 'absorbingly', 'abstained', 'abstemious', 'abstinence', 'abstract', 'abstracted', 'abstraction', 'absurd', 'absurdly', 'abundance', 'abundant', 'abundantly', 'academy', 'accelerate', 'accelerated', 'accelerating', 'accept', 'accessible', 'accessory', 'accident', 'accidental', 'accidentally', 'accidents', 'accommodate', 'accommodated', 'accommodation', 'accompanied', 'accompanies', 'accompaniments', 'accompany', 'accompanying', 'accomplish', 'accomplished', 'accomplishing', 'accomplishment', 'accordance', 'according', 'accordingly', 'accosted', 'account', 'accountable', 'accountants', 'accounted', 'accounting', 'accounts', 'accumulate', 'accumulated', 'accumulating', 'accuracy', 'accurate', 'accurately', 'accursed', 'accustomed', 'acerbities', 'ache', 'ached', 'achieve', 'achieved', 'achilles', 'acknowledges', 'acknowledging', 'acquaintance', 'acquaintances', 'acquainted', 'acquiesce', 'acquiesced', 'acquiescence', 'acquired', 'acre', 'acres', 'acridness', 'across', 'act', 'acted', 'actest', 'action', 'actions', 'actium', 'active', 'actively', 'activity', 'acts', 'actual', 'actually', 'actuated', 'acushnet', 'acute', 'acuteness', 'adam', 'adamite', 'adapted', 'add', 'added', 'adding', 'addition', 'additional', 'address', 'addressed', 'addressing', 'adds', 'adequate', 'adequately', 'adhering', 'adhesiveness', 'adieu', 'adieux', 'adios', 'adjacent', 'adjoining', 'adjust', 'adjusting', 'admeasurement', 'admeasurements', 'administered', 'administering', 'admirable', 'admirably', 'admiral', 'admirals', 'admire', 'admirer', 'admirers', 'admit', 'admits', 'admitted', 'admitting', 'admonish', 'admonished', 'admonishing', 'admonitions', 'admonitory', 'ado', 'adolescence', 'adopt', 'adopted', 'adopting', 'adoption', 'adoration', 'adoring', 'adorned', 'adorning', 'adornment', 'adown', 'adrift', 'adroit', 'adroitly', 'adroop', 'adult', 'adulterer', 'advance', 'advanced', 'advancement', 'advances', 'advancing', 'advantage', 'advantages', 'advent', 'adventure', 'adventures', 'adventurous', 'adventurously', 'adverse', 'advert', 'advertised', 'advice', 'advised', 'advocate', 'aerated', 'aesthetically', 'aesthetics', 'afar', 'affair', 'affairs', 'affect', 'affected', 'affecting', 'affection', 'affectionate', 'affectionately', 'affghanistan', 'affidavit', 'affinities', 'affirm', 'affirmative', 'affirms', 'affixed', 'afflicted', 'afflictions', 'affluent', 'afford', 'afforded', 'affording', 'affords', 'affright', 'affrighted', 'affrights', 'affronted', 'afire', 'afloat', 'afoam', 'afore', 'aforesaid', 'aforethought', 'afoul', 'afraid', 'afresh', 'afric', 'africa', 'african', 'africans', 'aft', 'after', 'afternoon', 'afternoons', 'afterwards', 'again', 'againe', 'against', 'agassiz', 'age', 'aged', 'agencies', 'agency', 'agent', 'agents', 'ages', 'aggravate', 'aggregate', 'aggregated', 'aggregation', 'aggregations', 'aggrieved', 'aghast', 'agile', 'agitated', 'aglow', 'ago', 'agonies', 'agonized', 'agonizing', 'agonizingly', 'agony', 'agrarian', 'agree', 'agreeable', 'agreed', 'agrees', 'aground', 'ague', 'ah', 'ahab', 'ahabs', 'ahasuerus', 'ahaz', 'ahead', 'ahoy', 'aid', 'aides', 'ails', 'aim', 'aimed', 'aimlessly', 'ain', 'aint', 'air', 'airley', 'airth', 'aisle', 'ajar', 'akin', 'alabama', 'aladdin', 'alarm', 'alarmed', 'alarms', 'alas', 'alb', 'albatross', 'albatrosses', 'albemarle', 'albert', 'albicore', 'albino', 'alcoves', 'aldermen', 'aldrovandi', 'aldrovandus', 'ale', 'aleak', 'alert', 'alewives', 'alexander', 'alexanders', 'alfred', 'algerine', 'algiers', 'alien', 'aliens', 'alights', 'alike', 'aliment', 'alive', 'all', 'allay', 'allaying', 'alleged', 'alleghanian', 'alleghanies', 'allegiance', 'allegorical', 'allegory', 'alley', 'alleys', 'allies', 'allotted', 'allow', 'allowance', 'allowances', 'allowed', 'allowing', 'allude', 'alluded', 'alluding', 'allured', 'allurements', 'allures', 'alluring', 'alluringly', 'allurings', 'allusion', 'allusions', 'almanac', 'almanack', 'almighty', 'almost', 'alms', 'aloft', 'alone', 'along', 'alongside', 'aloof', 'aloud', 'alow', 'alpacas', 'alpine', 'alps', 'already', 'also', 'altar', 'alter', 'altered', 'altering', 'alternate', 'alternately', 'alternating', 'although', 'altitude', 'altitudes', 'altogether', 'always', 'am', 'amain', 'amaze', 'amazement', 'amazing', 'amazingly', 'amber', 'ambergriese', 'ambergris', 'ambiguous', 'ambition', 'ambitious', 'amelia', 'amen', 'amend', 'america', 'american', 'americans', 'americas', 'amid', 'amidst', 'amittai', 'among', 'amongst', 'amorous', 'amount', 'amounted', 'amounts', 'amours', 'amphibious', 'amphitheatrical', 'ample', 'amplified', 'amplify', 'amputate', 'amputated', 'amputating', 'amputation', 'amputations', 'amsterdam', 'amuck', 'amusing', 'an', 'anacharsis', 'anaconda', 'anacondas', 'anak', 'analogical', 'analogies', 'analogous', 'analogy', 'analyse', 'analysed', 'analysis', 'analytic', 'anathemas', 'anatomical', 'anatomist', 'anatomy', 'ancestors', 'ancestress', 'ancestry', 'anchor', 'anchored', 'anchors', 'ancient', 'ancientest', 'and', 'andes', 'andirons', 'andrew', 'andromeda', 'anew', 'angel', 'angelo', 'angels', 'anger', 'angle', 'angles', 'anglo', 'angrily', 'angry', 'anguish', 'angular', 'angularly', 'animal', 'animals', 'animate', 'animated', 'animating', 'animation', 'animosity', 'ankers', 'ankles', 'annals', 'annawon', 'anne', 'annihilated', 'annihilating', 'annihilation', 'anno', 'announced', 'announcement', 'announces', 'announcing', 'annual', 'annually', 'annuitants', 'annus', 'anoint', 'anointed', 'anointing', 'anoints', 'anomalous', 'anomalously', 'anomaly', 'anon', 'anonymous', 'another', 'answer', 'answered', 'answers', 'ant', 'antagonistic', 'antarctic', 'antecedent', 'antediluvian', 'antelope', 'antemosaic', 'anti', 'antichronical', 'anticipated', 'anticipatingly', 'anticipation', 'anticipative', 'antics', 'antidote', 'antilles', 'antiochus', 'antique', 'antiquities', 'antiquity', 'antlered', 'antlers', 'antony', 'ants', 'antwerp', 'anus', 'anvil', 'anxieties', 'anxiety', 'anxious', 'any', 'anybody', 'anyhow', 'anyone', 'anything', 'anyway', 'anyways', 'anywhere', 'aorta', 'apart', 'apartment', 'ape', 'apeak', 'apertures', 'apex', 'apollo', 'apology', 'apoplectic', 'apoplexy', 'apostolic', 'apothecary', 'apotheosis', 'appal', 'appalled', 'appalling', 'appallingly', 'appals', 'apparatus', 'apparel', 'apparelled', 'apparent', 'apparently', 'apparition', 'appeal', 'appeals', 'appear', 'appearance', 'appearances', 'appeared', 'appearing', 'appears', 'appellation', 'appellations', 'appellative', 'append', 'appendage', 'appetite', 'appetites', 'apple', 'appliance', 'applicable', 'application', 'applied', 'applies', 'apply', 'applying', 'appoint', 'appointed', 'appointments', 'apportioned', 'appreciative', 'apprehension', 'apprehensions', 'apprehensiveness', 'apprise', 'apprised', 'approach', 'approached', 'approaches', 'approaching', 'appropriate', 'appropriated', 'approval', 'approve', 'approved', 'approving', 'approvingly', 'approximate', 'apricot', 'april', 'apron', 'apt', 'aptitude', 'aptitudes', 'aquarius', 'arbitrary', 'arboring', 'arbours', 'arc', 'arch', 'archaeological', 'archaeologists', 'archangel', 'archangelic', 'archangelical', 'archangels', 'archbishop', 'archbishopric', 'arched', 'archer', 'arches', 'archiepiscopacy', 'arching', 'archipelagoes', 'architect', 'architects', 'architecture', 'archy', 'arctic', 'ardour', 'are', 'area', 'arethusa', 'argo', 'argosy', 'argue', 'argued', 'arguing', 'argument', 'arguments', 'arid', 'aries', 'aright', 'arion', 'arise', 'arisen', 'arises', 'arising', 'aristotle', 'arithmetic', 'ark', 'arkansas', 'arkite', 'arm', 'armada', 'armed', 'armies', 'armor', 'arms', 'army', 'arnold', 'aroma', 'aromas', 'aromatic', 'aroostook', 'arose', 'around', 'arpens', ...]
sorted(w.lower() for w in set(text1))
['!', '!"', '!"--', "!'", '!\'"', '!)', '!)"', '!*', '!--', '!--"', "!--'", '"', '"\'', '"--', '"...', '";', '$', '&', "'", "',", "',--", "'-", "'--", "';", '(', ')', '),', ')--', ').', ').--', '):', ');', ');--', '*', ',', ',"', ',"--', ",'", ",'--", ',)', ',*', ',--', ',--"', ",--'", '-', '--', '--"', "--'", '--\'"', '--(', '---"', '---,', '.', '."', '."*', '."--', ".'", '.\'"', '.)', '.*', '.*--', '.,', '.--', '.--"', '...', '....', '.]', '000', '1', '10', '100', '101', '102', '103', '104', '105', '106', '107', '108', '109', '11', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '12', '120', '121', '122', '123', '124', '125', '126', '127', '128', '129', '13', '130', '131', '132', '133', '134', '135', '14', '144', '1492', '15', '150', '15th', '16', '1652', '1668', '1671', '1690', '1695', '16th', '17', '1726', '1729', '1750', '1772', '1775', '1776', '1778', '1779', '1788', '1791', '1793', '18', '180', '1807', '1819', '1820', '1821', '1825', '1828', '1833', '1836', '1839', '1840', '1842', '1846', '1850', '1851', '19', '1st', '1st', '2', '20', '2000', '200th', '21', '21st', '22', '23', '24', '25', '26', '27', '275th', '28', '29', '2nd', '3', '30', '31', '31st', '32', '33', '34', '35', '36', '37', '38', '39', '3d', '3d', '4', '40', '400', '41', '42', '43', '44', '440', '45', '46', '47', '48', '49', '4th', '5', '50', '500', '51', '52', '53', '54', '55', '550', '56', '57', '58', '59', '5th', '6', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '7', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '8', '80', '800', '81', '82', '83', '84', '85', '86', '87', '88', '89', '890', '9', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', ':', ':"-', ':--', ':--"', ":--'", ';', ';"', ';"--', ';"--(', ";'", ';*', ';--', ';--"', ";--'", '?', '?"', '?"--', "?'", "?'--'", '?--', '?--"', "?--'", '[', ']', '_____________', 'a', 'a', 'aback', 'abaft', 'abandon', 'abandoned', 'abandonedly', 'abandonment', 'abased', 'abasement', 'abashed', 'abashed', 'abate', 'abated', 'abatement', 'abating', 'abbreviate', 'abbreviation', 'abeam', 'abed', 'abednego', 'abel', 'abhorred', 'abhorrence', 'abhorrent', 'abhorring', 'abide', 'abided', 'abiding', 'ability', 'abjectly', 'abjectus', 'able', 'ablutions', 'aboard', 'aboard', 'abode', 'abominable', 'abominable', 'abominate', 'abominated', 'abomination', 'aboriginal', 'aboriginally', 'aboriginalness', 'abortion', 'abortions', 'abound', 'abounded', 'abounding', 'aboundingly', 'about', 'about', 'about', 'above', 'above', 'abraham', 'abreast', 'abridged', 'abroad', 'abruptly', 'absence', 'absent', 'absolute', 'absolutely', 'absorbed', 'absorbing', 'absorbingly', 'abstained', 'abstemious', 'abstinence', 'abstract', 'abstracted', 'abstraction', 'absurd', 'absurdly', 'abundance', 'abundant', 'abundantly', 'academy', 'accelerate', 'accelerated', 'accelerating', 'accept', 'accessible', 'accessory', 'accessory', 'accident', 'accidental', 'accidentally', 'accidents', 'accommodate', 'accommodated', 'accommodation', 'accompanied', 'accompanies', 'accompaniments', 'accompany', 'accompanying', 'accomplish', 'accomplished', 'accomplishing', 'accomplishment', 'accordance', 'according', 'according', 'accordingly', 'accordingly', 'accosted', 'account', 'account', 'accountable', 'accountants', 'accounted', 'accounting', 'accounts', 'accumulate', 'accumulated', 'accumulating', 'accuracy', 'accurate', 'accurately', 'accursed', 'accursed', 'accustomed', 'acerbities', 'ache', 'ached', 'achieve', 'achieved', 'achilles', 'acknowledges', 'acknowledging', 'acquaintance', 'acquaintances', 'acquainted', 'acquiesce', 'acquiesced', 'acquiescence', 'acquired', 'acre', 'acres', 'acridness', 'across', 'act', 'acted', 'actest', 'action', 'actions', 'actium', 'active', 'actively', 'activity', 'acts', 'actual', 'actually', 'actuated', 'acushnet', 'acute', 'acuteness', 'adam', 'adamite', 'adapted', 'add', 'added', 'adding', 'addition', 'additional', 'additional', 'address', 'addressed', 'addressing', 'adds', 'adequate', 'adequately', 'adhering', 'adhesiveness', 'adieu', 'adieu', 'adieux', 'adios', 'adjacent', 'adjoining', 'adjust', 'adjusting', 'admeasurement', 'admeasurements', 'administered', 'administering', 'admirable', 'admirably', 'admiral', 'admiral', 'admirals', 'admirals', 'admire', 'admirer', 'admirers', 'admit', 'admits', 'admitted', 'admitting', 'admonish', 'admonished', 'admonishing', 'admonitions', 'admonitory', 'ado', 'adolescence', 'adopt', 'adopted', 'adopting', 'adoption', 'adoration', 'adoring', 'adorned', 'adorning', 'adornment', 'adown', 'adrift', 'adroit', 'adroitly', 'adroop', 'adult', 'adulterer', 'advance', 'advance', 'advanced', 'advancement', 'advances', 'advancing', 'advancing', 'advantage', 'advantages', 'advent', 'adventure', 'adventures', 'adventures', 'adventures', 'adventurous', 'adventurously', 'adverse', 'advert', 'advertised', 'advice', 'advised', 'advocate', 'advocate', 'aerated', 'aesthetically', 'aesthetics', 'afar', 'affair', 'affairs', 'affect', 'affected', 'affected', 'affecting', 'affection', 'affectionate', 'affectionately', 'affghanistan', 'affidavit', 'affidavit', 'affinities', 'affirm', 'affirmative', 'affirms', 'affixed', 'afflicted', 'afflictions', 'affluent', 'afford', 'afforded', 'affording', 'affords', 'affright', 'affrighted', 'affrighted', 'affrights', 'affronted', 'afire', 'afloat', 'afoam', 'afore', 'aforesaid', 'aforethought', 'afoul', 'afraid', 'afresh', 'afric', 'africa', 'africa', 'african', 'africans', 'aft', 'aft', 'after', 'after', 'after', 'afternoon', 'afternoons', 'afterwards', 'afterwards', 'again', 'again', 'againe', 'against', 'against', 'against', 'agassiz', 'age', 'aged', 'agencies', 'agency', 'agent', 'agents', 'ages', 'ages', 'aggravate', 'aggregate', 'aggregated', 'aggregation', 'aggregations', 'aggrieved', 'aghast', 'agile', 'agitated', 'aglow', 'ago', 'agonies', 'agonized', 'agonizing', 'agonizingly', 'agony', 'agrarian', 'agree', 'agreeable', 'agreed', 'agrees', 'aground', 'ague', 'ah', 'ah', 'ahab', 'ahab', 'ahabs', 'ahasuerus', 'ahaz', 'ahead', 'ahoy', 'ahoy', 'aid', 'aides', 'ails', 'aim', 'aimed', 'aimlessly', 'ain', 'ain', 'aint', 'air', 'air', 'airley', 'airth', 'aisle', 'ajar', 'akin', 'akin', 'alabama', 'aladdin', 'alarm', 'alarmed', 'alarmed', 'alarms', 'alas', 'alas', 'alb', 'albatross', 'albatross', 'albatrosses', 'albemarle', 'albert', 'albicore', 'albino', 'alcoves', 'aldermen', 'aldrovandi', 'aldrovandus', 'ale', 'aleak', 'alert', 'alewives', 'alexander', 'alexanders', 'alfred', 'alfred', 'algerine', 'algerine', 'algiers', 'alien', 'aliens', 'alights', 'alike', 'alike', 'aliment', 'alive', 'alive', 'alive', 'all', 'all', 'all', 'allay', 'allaying', 'alleged', 'alleghanian', 'alleghanies', 'allegiance', 'allegorical', 'allegory', 'alley', 'alleys', 'allies', 'allotted', 'allow', 'allowance', 'allowances', 'allowed', 'allowing', 'allude', 'alluded', 'alluding', 'allured', 'allurements', 'allures', 'alluring', 'alluringly', 'allurings', 'allusion', 'allusions', 'almanac', 'almanack', 'almighty', 'almighty', 'almost', 'almost', 'alms', 'aloft', 'aloft', 'alone', 'alone', 'alone', 'along', 'alongside', 'aloof', 'aloud', 'alow', 'alpacas', 'alpine', 'alps', 'already', 'already', 'also', 'also', 'altar', 'alter', 'altered', 'altering', 'alternate', 'alternately', 'alternating', 'although', 'altitude', 'altitudes', 'altogether', 'always', 'am', 'am', 'am', 'amain', 'amaze', 'amazement', 'amazing', 'amazingly', 'amber', 'ambergriese', 'ambergris', 'ambergris', 'ambiguous', 'ambition', 'ambitious', 'amelia', 'amen', 'amend', 'america', 'america', 'american', 'americans', 'americas', 'amid', 'amidst', 'amittai', 'among', 'among', 'among', 'amongst', 'amorous', 'amount', 'amounted', 'amounts', 'amours', 'amphibious', 'amphitheatrical', 'ample', 'amplified', 'amplify', 'amputate', 'amputated', 'amputating', 'amputation', 'amputations', 'amsterdam', 'amuck', 'amusing', 'an', 'an', 'anacharsis', 'anaconda', 'anacondas', 'anak', 'analogical', 'analogies', 'analogous', 'analogy', 'analyse', 'analysed', 'analysis', 'analytic', 'anathemas', 'anatomical', 'anatomist', 'anatomy', 'ancestors', 'ancestress', 'ancestry', 'anchor', 'anchored', 'anchors', 'anchors', 'ancient', 'ancientest', 'and', 'and', 'and', 'andes', 'andirons', 'andrew', 'andromeda', 'anew', 'angel', 'angel', 'angelo', 'angels', 'angels', 'anger', 'angle', 'angles', 'anglo', 'angrily', 'angry', 'anguish', 'angular', 'angularly', 'animal', 'animal', 'animals', 'animate', 'animated', 'animated', 'animating', 'animation', 'animosity', 'ankers', 'ankles', 'annals', 'annals', 'annawon', 'anne', 'annihilated', 'annihilating', 'annihilation', 'anno', 'announced', 'announcement', 'announces', 'announcing', 'annual', 'annually', 'annuitants', 'annus', 'anoint', 'anointed', 'anointing', 'anoints', 'anomalous', 'anomalous', 'anomalously', 'anomaly', 'anon', 'anonymous', 'another', 'another', 'another', 'answer', 'answer', 'answered', 'answers', 'ant', 'antagonistic', 'antarctic', 'antecedent', 'antediluvian', 'antelope', 'antemosaic', 'anti', 'antichronical', 'anticipated', 'anticipatingly', 'anticipation', 'anticipative', 'antics', 'antidote', 'antilles', 'antiochus', 'antique', 'antiquities', 'antiquity', 'antlered', 'antlers', 'antony', 'ants', 'antwerp', 'anus', 'anvil', 'anvil', 'anxieties', 'anxiety', 'anxious', 'any', 'any', 'any', 'anybody', 'anyhow', 'anyhow', 'anyone', 'anything', 'anything', 'anyway', 'anyways', 'anywhere', 'aorta', 'apart', 'apartment', 'ape', 'apeak', 'apertures', 'apex', 'apollo', 'apology', 'apoplectic', 'apoplexy', 'apoplexy', 'apostolic', 'apothecary', 'apotheosis', 'appal', 'appalled', 'appalling', 'appallingly', 'appals', 'apparatus', 'apparel', 'apparelled', 'apparent', 'apparently', 'apparition', 'appeal', 'appeals', 'appear', 'appearance', 'appearances', 'appeared', 'appearing', 'appears', 'appellation', 'appellations', 'appellative', 'append', 'appendage', 'appetite', 'appetites', 'apple', 'appliance', 'applicable', 'application', 'application', 'applied', 'applied', 'applies', 'apply', 'apply', 'applying', 'appoint', 'appointed', 'appointments', 'apportioned', 'appreciative', 'apprehension', ...]
sorted(w.isupper() for w in sent8) # True beinhalted nur großgeschriebene
[False, False, False, False, False, False, False, False, False, False, False, False, True, True]
sorted(not w.islower() for w in sent8) # True beinhalted auch Satzzeichen
[False, False, False, False, False, False, False, False, True, True, True, True, True, True]
sorted(sent8)
[',', ',', '.', '25', 'MALE', 'SEXY', 'attrac', 'discreet', 'encounters', 'for', 'lady', 'older', 'seeks', 'single']
len(text1)
260819
print(text1[260816:260819])
['another', 'orphan', '.']
print(sent8)
['25', 'SEXY', 'MALE', ',', 'seeks', 'attrac', 'older', 'single', 'lady', ',', 'for', 'discreet', 'encounters', '.']
print(sent8[13-2:])
['discreet', 'encounters', '.']
print(text1[len(text1)-3:])
['another', 'orphan', '.']
v = set(text1)
four_letters = [w for w in v if len(w) == 4]
(four_letters)
['lain', 'jure', 'hats', 'pour', 'shot', 'Wild', 'stab', 'bake', 'tale', 'whom', 'THEE', 'coin', 'note', 'toss', 'Gulf', 'poem', 'beds', 'maty', 'Toes', 'palm', 'pony', 'Hard', 'sing', 'tost', 'ever', 'town', 'east', '1850', '1750', 'tier', 'doom', 'gasp', 'made', 'buck', 'roof', 'gets', 'last', 'viol', 'ript', 'were', 'Line', 'deck', 'gras', 'lord', 'FEET', 'jars', 'ages', 'Dusk', 'wire', 'SETH', 'tide', 'case', 'NINE', 'kink', 'Flat', 'wink', 'Yoke', 'lead', 'Erie', '1840', 'chap', 'cart', 'lens', 'land', 'wary', 'knee', 'face', 'reap', 'yarn', 'rods', 'Fear', 'Dart', 'told', 'EYES', 'rows', 'Adam', 'hurl', 'Real', 'pair', 'Easy', 'oats', 'dash', 'Full', 'bale', 'soul', 'Pray', 'whit', 'mugs', '1778', 'Anak', 'feed', 'glue', 'Step', 'pool', 'ROSE', 'loan', 'weed', 'type', 'foul', 'sway', 'Tash', 'Away', 'Oars', 'TAIL', 'beat', '1726', 'Pine', 'Help', 'mind', 'girl', 'Elbe', 'brit', 'gaze', 'most', 'fall', 'sail', 'lime', 'Fitz', 'test', 'aged', 'shed', 'gave', 'Omen', 'just', 'oder', 'cork', 'core', 'Fata', 'tear', 'sons', 'hast', 'dies', 'soon', 'Cold', 'feud', 'pure', 'Whew', 'foes', 'odds', 'NEST', 'wise', 'Hast', 'Wolf', 'Jerk', 'SONG', 'Ahaz', 'Gros', 'Dick', 'bear', 'Long', 'mong', 'mint', 'poop', 'hypo', 'orbs', 'cake', 'been', 'whip', 'Much', 'pond', 'teak', 'dawn', 'sped', 'Thus', 'UPON', 'Nail', 'Owen', 'pile', 'scan', 'grey', 'cage', 'gash', '."--', 'ours', 'bore', '31st', 'same', 'bump', 'elks', 'Fogo', 'Thee', 'tons', 'Cant', 'hist', 'pert', 'loam', 'ergo', 'flog', 'ajar', 'vest', 'Esau', 'COLL', 'HIST', 'cite', 'bath', 'Seas', 'wool', 'sung', 'draw', 'dint', 'wake', 'fate', 'Deep', 'DOWN', 'harp', 'twin', 'cope', 'Hoot', 'belt', 'quit', 'bare', 'meat', 'cone', 'word', 'INTO', 'bind', 'dams', 'Hall', 'cuts', 'firm', 'stir', 'bows', ',"--', 'roar', 'died', 'DECK', 'rags', 'wash', 'poke', 'loaf', '1807', 'shun', 'Hang', 'rank', 'Wise', 'cold', 'Mind', 'fits', 'west', 'Quog', 'hasn', 'soot', 'Bess', 'brim', 'shop', '--\'"', 'stay', 'opal', 'cost', 'neat', 'even', 'wick', 'Lion', 'Diaz', 'lake', 'Late', 'arts', 'Asia', 'thin', 'envy', 'fins', 'WITH', 'band', 'obey', 'wind', 'pine', 'days', 'stop', 'Look', 'Roar', 'mole', 'lamb', 'desk', 'Tied', 'shad', 'roly', 'They', 'Jove', 'Stab', 'Mary', 'ship', 'Just', 'mere', 'Mene', 'flip', 'HUMP', 'cape', 'Tall', 'went', 'hams', 'rope', 'area', 'hate', 'More', 'year', 'wine', 'Snap', 'wall', 'pale', 'laws', 'bats', 'sure', 'comb', 'nine', 'Bull', 'Said', 'bury', 'Tyre', 'lick', 'held', 'KING', 'deep', 'lack', 'copy', 'Twas', 'nods', 'mark', 'pear', 'knot', 'clad', 'bask', 'THUS', 'wore', 'buoy', 'pain', 'Cato', 'feel', 'burn', 'Poor', 'dive', 'Pots', 'part', 'eber', 'rake', 'John', 'caps', 'Skin', 'howl', 'book', 'scud', 'claw', 'lava', 'hall', 'WHAT', 'Roll', 'abed', 'cast', 'wood', 'Davy', 'woes', 'rail', 'play', 'hymn', 'liar', 'pave', 'yell', 'Tail', 'boon', 'Fate', 'sage', 'slay', 'very', 'into', 'good', 'inch', 'maul', 'zeal', 'grub', 'rats', 'hoky', 'ride', 'dome', 'Jebb', 'Till', 'gamy', 'Main', 'unto', 'veer', 'tool', 'hard', 'idle', 'Your', '2000', 'King', 'L100', 'sign', 'turn', 'Talk', 'PAID', 'womb', 'eats', 'tent', 'said', 'loom', 'sits', 'Czar', 'Both', 'Hook', 'body', 'tilt', 'Ages', 'Tell', 'deer', '1791', 'LEAP', 'ails', 'jibs', 'ears', 'SHIP', 'Fish', 'VICE', 'Sure', 'tusk', 'spot', 'swap', 'Here', 'Bare', 'stig', 'haze', 'ague', 'fair', 'brow', 'some', 'task', 'demi', '1839', 'deaf', 'bade', 'fury', 'Town', 'L150', 'gain', 'dart', 'cant', 'beef', 'hain', 'sunk', '1779', 'HAND', 'take', 'deny', 'sled', 'rude', 'grin', 'Pale', ':--"', 'ring', 'Arch', 'Jury', 'eggs', 'feet', 'clan', 'tens', 'zone', 'moon', 'sash', 'send', 'huge', 'Luck', 'leaf', 'holy', 'size', 'hell', 'upon', 'song', 'wish', 'Must', 'than', 'Khan', 'base', 'crew', 'Obed', 'Hand', 'Deer', 'rule', 'Life', 'cure', 'Lord', 'puff', 'Paul', 'ruin', 'pate', 'milk', 'musk', 'make', 'Kant', 'both', 'kine', 'Time', 'come', 'rays', 'Brit', 'here', 'hear', 'Ding', 'Gall', 'nape', 'vale', 'dusk', 'Gold', 'gulf', 'sigh', 'tuns', '.*--', 'plug', 'Peru', 'suck', 'BOAT', 'boat', 'Lama', 'wait', 'bald', 'puts', 'Mark', 'Weep', 'beer', 'goal', 'mine', '1820', 'Holy', 'akin', 'anus', 'prop', 'Gone', 'reef', 'SAIL', 'dung', 'tall', 'else', 'goin', 'clay', 'gold', 'shoe', 'Ahoy', 'save', 'ahoy', '1851', 'goes', 'ASIA', 'swum', 'Beat', 'limb', 'Lake', "',--", 'came', 'mail', 'High', 'Know', 'wrap', 'Ahab', 'crop', 'then', 'Blue', 'jiff', 'Base', 'POKE', 'sect', 'link', 'hone', 'That', 'paid', 'tawn', 'Juan', 'apex', '!--"', 'door', '1652', 'rain', 'late', 'glow', 'felt', 'mown', 'thus', 'Siam', 'news', 'soap', 'LINE', 'warp', 'June', 'Pull', 'oars', 'VIDE', 'lean', 'lady', 'Ship', 'Vice', 'lock', 'OBED', 'Furl', 'this', 'dear', 'anew', 'ease', 'poor', 'West', 'furs', 'Push', 'Haul', 'quay', 'dewy', 'soft', 'fuel', 'bowl', 'vice', 'pity', 'Leap', 'raal', 'hold', 'halt', 'bulb', 'hawk', 'GOES', 'bars', 'Have', 'tore', 'Java', 'vane', 'Boys', 'Lost', '1846', 'THAT', 'cove', 'MATE', '?--"', 'Swim', '....', 'list', 'plan', 'amid', 'ways', 'keen', 'PADS', 'file', 'ceti', 'waif', 'Luff', 'cups', 'cobs', 'Very', 'damp', 'ebon', 'REST', 'lent', 'lone', 'kept', 'hang', 'Pipe', 'idly', 'fear', 'Want', 'thee', 'ones', 'Legs', 'Rome', 'Oahu', 'Herr', 'BRIT', 'sire', 'jack', 'lege', 'toil', 'cell', 'pays', 'stun', 'oxen', 'awed', 'Form', 'slew', 'Jews', 'CHOP', 'pray', 'lost', 'bunk', 'loss', 'hoot', 'arch', 'ober', 'full', 'baby', 'neck', 'maim', '16th', 'slit', 'EDGE', 'yoke', '?"--', 'barb', 'prey', 'mace', 'pawn', 'side', 'hook', 'parm', 'nick', 'fool', 'bold', 'YOUR', 'bird', 'foam', 'born', 'gnaw', 'SEEN', 'Tish', 'hued', 'Take', 'PHIL', 'mode', 'Pegu', 'amen', 'with', 'hung', 'Hold', 'fuss', 'gown', 'haul', 'weep', 'your', 'pick', 'WHEN', 'inns', 'hows', 'Dash', ",'--", 'Mend', 'Make', 'drew', 'layn', 'moot', 'YARD', 'hues', '1788', 'heel', 'Drat', 'WISE', 'Into', 'lays', 'cask', 'Juba', 'away', 'gift', 'moor', 'chat', '1729', 'ball', 'arid', 'oath', 'atom', 'Days', 'well', 'bulk', 'rips', 'gush', 'duke', 'sane', 'idea', 'Evil', 'true', 'Hope', 'chip', 'Spin', 'hail', 'Case', 'silk', 'tail', 'HALF', 'wery', 'nest', 'HEAD', 'cubs', 'foie', 'Cash', 'Abel', 'Kill', 'rest', 'help', 'when', '1819', 'dumb', 'herd', 'Alps', 'bend', ';--"', 'awls', '1695', 'bier', 'Pott', 'Cape', 'berg', 'Mote', 'busy', 'Fain', 'Port', 'grab', 'sack', 'glee', 'Loom', 'blue', 'lees', 'eave', 'aint', 'bags', 'prow', 'lets', 'Saco', 'curb', 'uses', 'TELL', 'high', 'rend', 'When', 'Kick', 'coat', 'lots', 'boys', 'shan', 'Didn', 'Yale', 'wing', 'dost', 'Land', 'luff', 'lieu', 'rock', 'vial', 'flap', 'Gate', 'Like', 'Huge', 'Call', 'Slip', 'fare', 'Shem', '1775', 'tidy', 'Dead', 'rose', 'Star', 'Saul', 'echo', 'beak', 'toes', 'torn', 'Hake', 'hish', 'duty', 'pill', 'bell', 'wear', 'Born', 'took', 'brew', 'pier', 'Work', 'Even', 'Grin', 'Wish', 'butt', 'Dame', 'mean', 'pail', '"...', 'tink', 'sell', 'yore', 'fill', 'nuts', 'tied', 'seed', 'acts', 'Akin', 'poky', 'dark', 'Hind', 'East', 'Pooh', 'Bang', 'Park', 'COOK', 'horn', 'more', 'twig', 'rate', 'knit', 'alas', 'hies', 'work', 'wild', 'seen', 'loon', 'Lane', 'alow', 'CROW', 'free', 'Boat', 'ROSS', 'done', 'Sink', 'oils', 'Nile', 'long', 'quid', 'mazy', 'dust', 'mend', 'worm', 'eyed', 'WALW', 'jobs', 'wipe', 'pomp', 'NUEE', 'hemp', 'pace', 'dish', 'says', 'tops', '1492', 'Does', 'Drop', 'hath', 'scar', 'beam', 'sang', 'HVAL', 'Moss', 'tars', 'lose', "?--'", 'noon', 'site', 'pike', 'JAGO', 'jogs', 'rout', 'Hish', 'tows', 'spos', 'Keep', 'clue', 'logs', 'anon', 'leap', 'Lank', 'July', 'thou', 'vats', 'Come', 'sill', 'mout', 'ROLL', 'babe', 'seer', 'flea', 'sich', 'This', 'jerk', 'hill', 'many', 'kiln', 'RIBS', 'cord', 'brag', 'sawn', 'pooh', 'city', 'dere', 'glen', 'drab', 'deem', 'pole', 'pore', 'tray', 'cool', 'nice', 'weld', 'evil', 'Once', 'care', 'Rose', 'know', 'Nose', 'Cain', 'seam', '21st', 'grim', 'whim', 'sore', 'spat', ";--'", 'Whom', 'joke', 'Near', 'ONLY', 'warn', 'coax', 'have', 'also', 'bout', 'ants', 'reel', ...]
FreqDist.most_common(four_letters)
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /tmp/ipykernel_6881/899096872.py in <module> ----> 1 FreqDist.most_common(four_letters) /usr/lib/python3.7/collections/__init__.py in most_common(self, n) 581 # Emulate Bag.sortedByCount from Smalltalk 582 if n is None: --> 583 return sorted(self.items(), key=_itemgetter(1), reverse=True) 584 return _heapq.nlargest(n, self.items(), key=_itemgetter(1)) 585 AttributeError: 'list' object has no attribute 'items'
# ??
for word in text1:
if word.isupper():
print(word)
ETYMOLOGY I H HACKLUYT WHALE HVAL HVALT WEBSTER S DICTIONARY WHALE WALLEN A S WALW IAN RICHARDSON S DICTIONARY KETOS GREEK CETUS LATIN WHOEL ANGLO SAXON HVALT DANISH WAL DUTCH HWAL SWEDISH WHALE ICELANDIC WHALE ENGLISH BALEINE FRENCH BALLENA SPANISH PEKEE NUEE NUEE FEGEE PEKEE NUEE NUEE ERROMANGOAN EXTRACTS I I EXTRACTS GENESIS JOB JONAH PSALMS ISAIAH HOLLAND S PLUTARCH S MORALS HOLLAND S PLINY TOOKE S LUCIAN THE TRUE HISTORY OTHER OR OCTHER S VERBAL NARRATIVE TAKEN DOWN FROM HIS MOUTH BY KING ALFRED A D MONTAIGNE APOLOGY FOR RAIMOND SEBOND RABELAIS STOWE S ANNALS LORD BACON S VERSION OF THE PSALMS IBID HISTORY OF LIFE AND DEATH KING HENRY HAMLET THE FAERIE QUEEN SIR WILLIAM DAVENANT PREFACE TO GONDIBERT SIR T BROWNE OF SPERMA CETI AND THE SPERMA CETI WHALE VIDE HIS V E WALLER S BATTLE OF THE SUMMER ISLANDS OPENING SENTENCE OF HOBBES S LEVIATHAN PILGRIM S PROGRESS PARADISE LOST IBID FULLLER S PROFANE AND HOLY STATE DRYDEN S ANNUS MIRABILIS THOMAS EDGE S TEN VOYAGES TO SPITZBERGEN IN PURCHAS SIR T HERBERT S VOYAGES INTO ASIA AND AFRICA HARRIS COLL SCHOUTEN S SIXTH CIRCUMNAVIGATION N E I A VOYAGE TO GREENLAND A D HARRIS COLL I SIBBALD S FIFE AND KINROSS I I RICHARD STRAFFORD S LETTER FROM THE BERMUDAS PHIL TRANS A D N E PRIMER I CAPTAIN COWLEY S VOYAGE ROUND THE GLOBE A D ULLOA S SOUTH AMERICA RAPE OF THE LOCK GOLDSMITH NAT HIST GOLDSMITH TO JOHNSON COOK S VOYAGES UNO VON TROIL S LETTERS ON BANKS S AND SOLANDER S VOYAGE TO ICELAND IN THOMAS JEFFERSON S WHALE MEMORIAL TO THE FRENCH MINISTER IN EDMUND BURKE S REFERENCE IN PARLIAMENT TO THE NANTUCKET WHALE FISHERY EDMUND BURKE SOMEWHERE A BLACKSTONE FALCONER S SHIPWRECK COWPER ON THE QUEEN S VISIT TO LONDON JOHN HUNTER S ACCOUNT OF THE DISSECTION OF A WHALE A SMALL SIZED ONE PALEY S THEOLOGY BARON CUVIER COLNETT S VOYAGE FOR THE PURPOSE OF EXTENDING THE SPERMACETI WHALE FISHERY MONTGOMERY S WORLD BEFORE THE FLOOD CHARLES LAMB S TRIUMPH OF THE WHALE OBED MACY S HISTORY OF NANTUCKET I HAWTHORNE S TWICE TOLD TALES IBID I COOPER S PILOT ECKERMANN S CONVERSATIONS WITH GOETHE I NARRATIVE OF THE SHIPWRECK OF THE WHALE SHIP ESSEX OF NANTUCKET WHICH WAS ATTACKED AND FINALLY DESTROYED BY A LARGE SPERM WHALE IN THE PACIFIC OCEAN BY OWEN CHACE OF NANTUCKET FIRST MATE OF SAID VESSEL NEW YORK A ELIZABETH OAKES SMITH SCORESBY THOMAS BEALE S HISTORY OF THE SPERM WHALE FREDERICK DEBELL BENNETT S WHALING VOYAGE ROUND THE GLOBE A THAR J ROSS BROWNE S ETCHINGS OF A WHALING CRUIZE NARRATIVE OF THE GLOBE BY LAY AND HUSSEY SURVIVORS A D MISSIONARY JOURNAL OF TYERMAN AND BENNETT REPORT OF DANIEL WEBSTER S SPEECH IN THE U S SENATE ON THE APPLICATION FOR THE ERECTION OF A BREAKWATER AT NANTUCKET THE WHALE AND HIS CAPTORS OR THE WHALEMAN S ADVENTURES AND THE WHALE S BIOGRAPHY GATHERED ON THE HOMEWARD CRUISE OF THE COMMODORE PREBLE BY REV HENRY T CHEEVER I LIFE OF SAMUEL COMSTOCK THE MUTINEER BY HIS BROTHER WILLIAM COMSTOCK ANOTHER VERSION OF THE WHALE SHIP GLOBE NARRATIVE MCCULLOCH S COMMERCIAL DICTIONARY FROM SOMETHING UNPUBLISHED CURRENTS AND WHALING U S EX EX TALES OF A WHALE VOYAGER TO THE ARCTIC OCEAN NEWSPAPER ACCOUNT OF THE TAKING AND RETAKING OF THE WHALE SHIP HOBOMACK CRUISE IN A WHALE BOAT MIRIAM COFFIN OR THE WHALE FISHERMAN A CHAPTER ON WHALING IN RIBS AND TRUCKS I DARWIN S VOYAGE OF A NATURALIST WHARTON THE WHALE KILLER NANTUCKET SONG A WHALE SONG CHAPTER I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I BEING PAID I I I GRAND CONTESTED ELECTION FOR THE PRESIDENCY OF THE UNITED STATES WHALING VOYAGE BY ONE ISHMAEL BLOODY BATTLE IN AFFGHANISTAN I I I I I I I I I CHAPTER I I I I I I I I I I I I I I I I I I I I A I I I I I I I CHAPTER A THAT I A THIS THIS I SKRIMSHANDER I I I I I I I I I I I I I I I I I I A I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I BROWN I I I BROKE I I I I I I I I I YOU I YOU I I I I I I I DO WON T I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I A I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I A I I I I I I I I I I I I I I I I CHAPTER I I I HE I I A I THAT I CHAPTER I I CHAPTER I I I I I A I SACRED TO THE MEMORY OF JOHN TALBOT THIS TABLET BY HIS SISTER SACRED TO THE MEMORY OF ROBERT LONG WILLIS ELLERY NATHAN COLEMAN WALTER CANNY SETH MACY AND SAMUEL GLEIG OF THE SHIP ELIZA PACIFIC THIS MARBLE SHIPMATES SACRED TO THE MEMORY OF CAPTAIN EZEKIEL HARDY AUGUST THIS TABLET BY HIS WIDOW I I I HERE I I I CHAPTER I I I I I I I I CHAPTER I I I I I A WHAT I I I I I I A I O I I O THEN HIS I I I I I ME ME O I I I CHAPTER A I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I THAT I THAT I I I I I I CHAPTER I I I I I I I I I I I I I I I CHAPTER I A I I I I I I CHAPTER I I I I I I I I I I YOU I I YOU I A I CHAPTER THERE THERE CHAPTER I I I I A I TWO I A I I I I A THAT I I I I I I I I I I I ILE I I I CHAPTER I I I I I I I HOW I I I XXXIX I I DEVIL DAM I TIT BIT PEQUOD I I A A I I I A I I I I I I I I I I I I I I I I I I I I I I I I I I I I I SURE I I I I I I I I I I I I I I I I I I I I I I O I I I I I I I I I I I I I I I I I I LONG LAY I I I I I I I I I I LAY LAY LAY I I LAY LAYS LONG LAY TEENTH I I I I I I I I I I I I I I I I I I I I I I I I I I I I HE S AHAB I I I I I I I I I I I I I I I I CHAPTER I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I ALIVE I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I I I I I I I I I I I THAT SPLICE I I I I I I I I X I I I I I I I I CHAPTER I A I I I I A I HE S HE I I TELL I I I I THAT I I I I I ALL I I I I I I I I I I I I I I I CHAPTER A I SHE I I I I I I I CHAPTER I I I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I I I I I I I I I I I I I CHAPTER I I O CHAPTER I I S W F XVI L1 I I I THE WHALE NO FAMOUS AUTHOR AND WHALING NO FAMOUS CHRONICLER NO GOOD BLOOD IN THEIR VEINS WHALING NOT RESPECTABLE THE WHALE NEVER FIGURED IN ANY GRAND IMPOSING WAY NO DIGNITY IN WHALING I I I I I MSS I CHAPTER I I CHAPTER A I I I I I I I O CHAPTER A I A I ISOLATOES I ISOLATO CHAPTER I I I I I I I I I I I I I CHAPTER I I I I I I I I I DID A I I I I I THAT DID I I I I I CHAPTER I I I CHAPTER I I I I I I I I I I I I I I THERE S I I I I I I YOU I I I I I I I I I I HERE I I YOUR I BE I I I D A CHAPTER I A D A D A J T I I I I I I I I I I I A D I I I I A SPOUTING FISH WITH A HORIZONTAL TAIL A I I I I BOOKS CHAPTERS I THE FOLIO WHALE II OCTAVO WHALE III DUODECIMO WHALE FOLIO I SPERM WHALE OCTAVO GRAMPUS DUODECIMO PORPOISE FOLIOS I I SPERM WHALE II RIGHT WHALE III FIN BACK WHALE IV HUMP BACKED WHALE V RAZOR BACK WHALE VI SULPHUR BOTTOM WHALE BOOK I FOLIO CHAPTER I SPERM WHALE I I BOOK I FOLIO CHAPTER II RIGHT WHALE I BOOK I FOLIO CHAPTER III FIN BACK I WHALEBONE WHALES BOOK I FOLIO CHAPTER IV HUMP BACK BOOK I FOLIO CHAPTER V RAZOR BACK I I BOOK I FOLIO CHAPTER VI SULPHUR BOTTOM I I BOOK I FOLIO BOOK II OCTAVO OCTAVOES I GRAMPUS II BLACK FISH III NARWHALE IV THRASHER V KILLER BOOK II OCTAVO CHAPTER I GRAMPUS BOOK II OCTAVO CHAPTER II BLACK FISH I I I BOOK II OCTAVO CHAPTER III NARWHALE NOSTRIL WHALE I I I BOOK II OCTAVO CHAPTER IV KILLER I I I BOOK II OCTAVO CHAPTER V THRASHER BOOK II OCTAVO BOOK III DUODECIMO DUODECIMOES I II III WHALES BOOK III DUODECIMO CHAPTER HUZZA PORPOISE I A BOOK III DUODECIMO CHAPTER II ALGERINE PORPOISE A I I BOOK III DUODECIMO CHAPTER III MEALY MOUTHED PORPOISE A DUODECIMO I I I I I I CHAPTER IN TERROREM I I CHAPTER A I I I I I I CHAPTER I I A CROW S NESTS A CROW S NEST SLEET S CROW S NEST I I I I I I I I I CHAPTER ENTER AHAB THEN ALL D A D I I I I I I A I I HERE I I I I I I I I THAT ASIDE I I O THAT I THAT I I CHAPTER THE CABIN BY THE STERN WINDOWS AHAB SITTING ALONE AND GAZING OUT I I I I I I I I I I WAVING HIS HAND HE MOVES FROM THE WINDOW I I I I I I I I I I I I I I ME I YE I I CHAPTER BY THE MAINMAST STARBUCK LEANING AGAINST IT I I I I I I I I I I I A BURST OF REVELRY FROM THE FORECASTLE I I O CHAPTER STUBB SOLUS AND MENDING A BRACE I I I I I I WISE I I I I I A ASIDE I CHAPTER HARPOONEERS AND SAILORS FORESAIL RISES AND DISCOVERS THE WATCH STANDING LOUNGING LEANING AND LYING IN VARIOUS ATTITUDES ALL SINGING IN CHORUS 1ST NANTUCKET SAILOR SINGS AND ALL FOLLOW A A MATE S VOICE FROM THE QUARTER DECK 2ND NANTUCKET SAILOR I THRUSTS HIS HEAD DOWN THE SCUTTLE DUTCH SAILOR I THAT S FRENCH SAILOR PIP SULKY AND SLEEPY FRENCH SAILOR I ICELAND SAILOR I I I MALTESE SAILOR I SICILIAN SAILOR I LONG ISLAND SAILOR I AZORE SAILOR ASCENDING AND PITCHING THE TAMBOURINE UP THE SCUTTLE THE HALF OF THEM DANCE TO THE TAMBOURINE SOME GO BELOW SOME SLEEP OR LIE AMONG THE COILS OF RIGGING OATHS A PLENTY AZORE SAILOR DANCING PIP I CHINA SAILOR FRENCH SAILOR I TASHTEGO QUIETLY SMOKING I OLD MANX SAILOR I I I O I 3D NANTUCKET SAILOR THEY CEASE DANCING AND GATHER IN CLUSTERS MEANTIME THE SKY DARKENS THE WIND RISES LASCAR SAILOR MALTESE SAILOR RECLINING AND SHAKING HIS CAP I SICILIAN SAILOR RECLINING NUDGING TAHITAN SAILOR RECLINING ON A MAT I I I I I LEAPS TO HIS FEET PORTUGUESE SAILOR DANISH SAILOR 4TH NANTUCKET SAILOR I ENGLISH SAILOR ALL OLD MANX SAILOR DAGGOO I SPANISH SAILOR ASIDE ADVANCING DAGGOO GRIMLY ST JAGO S SAILOR 5TH NANTUCKET SAILOR I SPANISH SAILOR DAGGOO SPRINGING SPANISH SAILOR MEETING HIM ALL A TASHTEGO WITH A WHIFF A BELFAST SAILOR A ENGLISH SAILOR A OLD MANX SAILOR MATE S VOICE FROM THE QUARTER DECK ALL THEY SCATTER PIP SHRINKING UNDER THE WINDLASS I I CHAPTER I I I A I I I A I CHAPTER I I I REQUIEM REQUIN I I I I I I I I I I A I I I I I I I I I A I I CHAPTER HIST I I I CHAPTER VEINS VEIN I CHAPTER I I I I I I I I I I I I I O O O O I I I I I I I I HAS I I I I I THE HORRID ASPECT AND REVENGE OF THE WHALE THE MYSTERIOUS AND MORTAL ATTACK OF THE ANIMAL I I J I I I I D D I I I I I I I A I I I I I I BRIT I CHAPTER I CHAPTER I I I I I I I I I I CHAPTER A I I I I I A I I I I I I I I I I O I I THERE THERE A CHAPTER I I I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I I I I CHAPTER CHAPTER I A I CHAPTER I GAM I I GAM GAM NOUN A SOCIAL MEETING OF TWO OR MORE WHALESHIPS GENERALLY ON A CRUISING GROUND WHEN AFTER EXCHANGING HAILS THEY EXCHANGE VISITS BY BOATS CREWS THE TWO CAPTAINS REMAINING FOR THE TIME ON BOARD OF ONE SHIP AND THE TWO CHIEF MATES ON THE OTHER I CHAPTER AS TOLD AT THE GOLDEN INN I I I I I I I I I I I I I I I A I I I A I I I I I I I A I I I I I I I I I I I I I I I I I I HIM A I I I I I I A I I I I I I I I I I I I I I CHAPTER I I I A D A A I I III CHAPTER I I I J I I I I H CHAPTER KEDGER I HANDS OFF I I I CHAPTER CHAPTER A I CHAPTER I I CHAPTER I I I A CHAPTER A I I I CHAPTER CHAPTER A A I I I I I I I I I I I I I I I I I I I I I I I D I CHAPTER I I I CHAPTER A CHAPTER CHAPTER I I I I I I I I I I I I A O CHAPTER I SHOALS ROCKS AND BREAKERS HEREABOUTS BEWARE CHAPTER A O O O CHAPTER A A A I I I I I CHAPTER I I I I I I I I I I I I I I I A I I I I I I I I I I I I I I I CHAPTER I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I A I I CHAPTER F A I I CHOP I I I I CHAPTER I I I I I I I I I I CHAPTER I A A I I CHAPTER A I I I CHAPTER I I I I I A A I CHAPTER I I I A I I I A I I I I I CHAPTER CLEAN I I I I I I A DO DO DO DO DON T DO DO DO I I I A I A CHAPTER I I I I I I I I I I CHAPTER A DEAD I I I CHAPTER I CHAPTER P M A D I I I I I HAVING HIS SPOUTINGS OUT I O I I I I I I I I I I I I CHAPTER I I I I I BREACH I I I I I I I I I I I I CHAPTER I I MORE HOMINUM I I A A CHAPTER I EMBONPOINT CHAPTER A D I A II A A I L100 L100 CHAPTER BRACTON L C A I I L150 I I A I CHAPTER SIR T BROWNE V E A I I I I I I I I I BOUTON ROSE A WHAT WHITE I I I YOURS I I I I CABINET I I I I I I I I I CHAPTER I I I I I I CHAPTER I STICK TO THE BOAT LEAP FROM THE BOAT I CHAPTER A I I A I I I I I I I I I I I I I I I I I I I I I I I I A CHAPTER I CHAPTER I I I I I I I I I I A I I I O ALL I E CHAPTER CHAPTER I EX OFFICIO THERE SHE BLOWS I I CHAPTER REPUBLICA DEL ECUADOR QUITO I A I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I I I I MY I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I I A I I I I I I I I I I I I I I I I I I I I CHAPTER A I A I I I I I I I I I I I I I I I I I I I I I I I I CHAPTER I I I I I I I I I I CHAPTER I I I I I I A I I I I I I I CHAPTER I A D I I I I CHAPTER CHAPTER A A A I MULTUM IN PARVO CHAPTER CARPENTER STANDING BEFORE HIS VICE BENCH AND BY THE LIGHT OF TWO LANTERNS BUSILY FILING THE IVORY JOIST FOR THE LEG WHICH JOIST IS FIRMLY FIXED IN THE VICE SLABS OF IVORY LEATHER STRAPS PADS SCREWS AND VARIOUS TOOLS OF ALL SORTS LYING ABOUT THE BENCH FORWARD THE RED FLAME OF THE FORGE IS SEEN WHERE THE BLACKSMITH IS AT WORK SNEEZES SNEEZES SNEEZES SNEEZES SNEEZES I SNEEZES I I I SNEEZES I SNEEZES I I I AHAB ADVANCING DURING THE ENSUING SCENE THE CARPENTER CONTINUES SNEEZING AT TIMES I I I I I I I I I ASIDE I I I I I I I I I I I I I I I I I TURNS TO GO I I I I I I I I CARPENTER RESUMING HIS WORK I I I I CHAPTER I I I I I I A I I I I CHAPTER I I I I I I CHAPTER I CHAPTER A THY I CHAPTER I I I I I I I HERE I I THAT I I I A I I I I I A A CHAPTER I I CHAPTER POKE I I CHAPTER I O CHAPTER A I I I I I I I I I CHAPTER I AM I SHALL O I THESE I I I I I I CHAPTER A I SINGS A A I I I I I I I I I I A I I I I I I I I I I I I I I I SUDDEN REPEATED FLASHES OF LIGHTNING THE NINE FLAMES LEAP LENGTHWISE TO THRICE THEIR PREVIOUS HEIGHT AHAB WITH THE REST CLOSES HIS EYES HIS RIGHT HAND PRESSED HARD UPON THEM I I I I I I I I I I I I I I I I CHAPTER AHAB STANDING BY THE HELM STARBUCK APPROACHING HIM I I I I I I I CHAPTER STUBB AND FLASK MOUNTED ON THEM AND PASSING ADDITIONAL LASHINGS OVER THE ANCHORS THERE HANGING I I ARE I I I I I I I I CHAPTER THE MAIN TOP SAIL YARD TASHTEGO PASSING NEW LASHINGS AROUND IT CHAPTER HO THE FAIR WIND OH YE HO CHEERLY MEN I I I I I I I THAT S THIS I I I I I I A I I I I I CHAPTER I I I I I CHAPTER I I I I I I I A I I I I I I I I CHAPTER A I I I I I I I I I I I I I I I I I I I I I CHAPTER THE COFFIN LAID UPON TWO LINE TUBS BETWEEN THE VICE BENCH AND THE OPEN HATCHWAY THE CARPENTER CAULKING ITS SEAMS THE STRING OF TWISTED OAKUM SLOWLY UNWINDING FROM A LARGE ROLL OF IT PLACED IN THE BOSOM OF HIS FROCK AHAB COMES SLOWLY FROM THE CABIN GANGWAY AND HEARS PIP FOLLOWING HIM I I I I I I I I I I I I I AHAB TO HIMSELF A A I I I I I CHAPTER A I I I I SHALL I I I YOU I I I I I CHAPTER AHAB MOVING TO GO ON DECK PIP CATCHES HIM BY THE HAND TO FOLLOW I I I I I I I I I I AHAB GOES PIP STEPS ONE STEP FORWARD I I I I I I I I CHAPTER I I CHAPTER I I I THAT I CHAPTER I I I I I I I I I I I I I I I I I I I O I I I I I I I CHAPTER T A I I I A A I I D I I I D I I I CHAPTER D I I I O I I I I I I MY MY I I I I I I I I THAT D I I I I LL I LL CHAPTER D THAT S I A I I I THAT I I ME I HIM I I I I A I I I I I I I I O I I I O I A I THIS I I I I I O I I I I I I O A I I I I I I I I I THUS I A AND I ONLY AM ESCAPED ALONE TO TELL THEE I I I I I
# Ending in ise Containing the letter z Containing the sequence of letters pt Having all lowercase letters except for an initial capital (i.e., titlecase) ???
for word in text6:
if word.endswith('ise') or 'z' in word or 'pt' in word or word.islower():
print(['word', end=' '])
File "/tmp/ipykernel_6881/1474147081.py", line 3 print(['word', end=' ']) ^ SyntaxError: invalid syntax
for word in text6:
if word.endswith('ise') or 'z' in word or 'pt' in word or word.islower():
print([word, end=' '])
File "/tmp/ipykernel_6881/1444638786.py", line 3 print([word, end=' ']) ^ SyntaxError: invalid syntax
for word in text6:
if word.endswith('ise') or 'z' in word or 'pt' in word or word.islower():
print(word, end=' ')
# how to do the list? ['word1', 'word2', 'word3']
wind clop clop clop there clop clop clop goes there is son of from the castle of of the defeator of the sovereign of all the other one am and this is my trusty servant have ridden the length and breadth of the land in search of knights who will join me in my court at must speak with your lord and master on a horse re using coconuts ve got two empty halves of coconut and you re bangin em together have ridden since the snows of winter covered this land through the kingdom of through d you get the coconuts found them them coconut s tropical do you mean this is a temperate zone swallow may fly south with the sun or the house martin or the plover may seek warmer climes in winter yet these are not strangers to our land you suggesting coconuts migrate at all could be carried swallow carrying a coconut could grip it by the husk s not a question of where he grips it s a simple question of weight ratios five ounce bird could not carry a one pound coconut it doesn t matter you go and tell your master that from the of is here order to maintain air speed velocity a swallow needs to beat its wings forty three times every second right right m not interested could be carried by an swallow yeah an swallow maybe but not a swallow s my point yeah agree with that you ask your master if he wants to join my court at then of course a swallows are non migratory yeah they couldn t bring a coconut back anyway clop clop clop a minute two swallows carried it together they d have to have it on a line simple d just use a strand of creeper held under the dorsal guiding feathers why not thud clang out your dead clang out your dead clang out your dead clang out your dead clang out your dead cough cough clang cough cough out your dead clang out your dead clang out your dead clang out your dead clang out your dead clang out rewr your dead rewr clang out your dead s one m not dead s your ninepence m not dead says he s not dead he is m not isn t he will be soon s very ill m getting better you re not ll be stone dead in a moment can t take him like that s against regulations don t want to go on the cart don t be such a baby can t take him feel fine do us a favor can t can you hang around a couple of minutes won t be long ve got to go to the s ve lost nine today when s your next round think ll go for a walk re not fooling anyone you know isn t there something you can do singing feel happy feel happy whop thanks very much at all you on right howl clop clop clop s that then dunno be a king hasn t got shit all over him thud music thud thud thud music stops woman knight live in that castle over there m thirty seven what m thirty seven m not old can t just call you you could say didn t know you were called you didn t bother to find out did you did say sorry about the old woman but from the behind you looked object to is that you automatically treat me like an inferior am king king eh very nice how d you get that eh exploiting the workers anging on to outdated imperialist dogma which perpetuates the economic and social differences in our society there s ever going to be any progress with the there s some lovely filth down here d you do do you do good lady am of the s castle is that of the who are the we all are are all and am your king didn t know we had a king thought we were an autonomous collective re fooling yourself re living in a dictatorship self perpetuating autocracy in which the working classes there you go bringing class into it again s what it s all about only people would hear of please good people am in haste lives in that castle one live there who is your lord don t have a lord told you re an anarcho syndicalist commune take it in turns to act as a sort of executive officer for the week all the decision of that officer have to be ratified at a special bi weekly meeting see a simple majority in the case of purely internal affairs quiet by a two thirds majority in the case of more major quiet order you to be quiet eh does he think he is am your king didn t vote for you don t vote for kings how did you become king then of the angels sing her arm clad in the purest shimmering samite held aloft from the bosom of the water signifying by that was to carry singing stops is why am your king strange women lying in ponds distributing swords is no basis for a system of government executive power derives from a mandate from the masses not from some farcical aquatic ceremony quiet but you can t expect to wield supreme executive power just cause some watery tart threw a sword at you up mean if went round saying was an emperor just because some moistened bint had lobbed a scimitar at me they d put me away up will you up now we see the violence inherent in the system up and see the violence inherent in the system help m being repressed peasant what a give away you hear that you hear that eh s what m on about you see him repressing me saw it didn t you music music stops music music stops music music stops stab music music stops clang and oh etc woosh kills thud scrape clop clop clop fight with the strength of many men pause am of the pause seek the finest and the bravest knights in the land to join me in my court at pause have proved yourself worthy you join me pause make me sad be it shall pass shall pass have no quarrel with you good but must cross this bridge you shall die command you as of the to stand aside move for no man be it and hiyaah etc chops the s left arm off stand aside worthy adversary but a scratch scratch arm s off it isn t what s that then ve had worse liar on you pansy clang clang clang chops the s right arm off is mine kneeling thank that in mer clunk on then at you kick are indeed brave but the fight is mine had enough eh you stupid bastard ve got no arms left have a flesh wound kick stop that kick ll have your leg kick whop chops the s right leg off ll do you for that ll what here are you going to do bleed on me m invincible re a looney always triumphs at you on then whop chops the s last leg off right we ll call it a draw see away eh yellow bastards back here and take what s coming to you ll bite your legs off chanting domine dona eis requiem bonk domine bonk dona eis requiem bonk domine bonk dona eis requiem witch witch bonk witch witch chanting domine witch witch witch witch ve found a witch witch witch witch witch ve got a witch witch witch her her her ve found a witch ve found a witch witch witch witch have found a witch we burn her her her her do you know she is a witch looks like one her forward m not a witch m not a witch but you are dressed as one dressed me up like this we didn t didn t this isn t my nose s a false one we did do the nose nose the hat but she is a witch burn her you dress her up like this and and a bit bit and bit bit has got a wart cough makes you think she is a witch she turned me into a newt newt got better her anyway her her are ways of telling whether she is a witch there are they us us me what do you do with witches them up what do you burn apart from witches witches why do witches burn pause cause they re made of wood heh yeah how do we tell whether she is made of wood a bridge out of her but can you not also make bridges out of stone yeah yeah wood sink in water it floats floats her into the pond pond her into the pond also floats in water very small rocks gra gravy duck logically she weighs the same as a duck she s made of wood therefore witch witch witch witch is a duck this duck quack quack quack shall use my largest scales the witch the witch her her her her her her her the supports whop clunk creak witch witch witch s a fair cop her her her her are you who are so wise in the ways of science am of the liege will you come with me to and join us at the liege would be honored is your name my liege dub you of the wise was the first to join s knights but other illustrious names were soon to follow the the and the not quite so brave as who had nearly fought the of who had nearly stood up to the vicious of and who had personally wet himself at the of and the aptly named appearing in this film they formed a band whose names and deeds were to be retold throughout the centuries the of the clop clop clop that my liege is how we know the earth to be banana shaped new learning amazes me again how sheep s bladders may be employed to prevent earthquakes certainly sir my liege trumpets s only a model bid you welcome to your new home us ride to in medieval hall singing re knights of the round table dance when e er we re able do routines and chorus scenes footwork impeccable dine well here in eat ham and jam and spam a lot dancing re knights of the shows are formidable many times we re given rhymes are quite unsingable re opera mad in sing from the diaphragm a lot in dungeon clap clap clap clap in medieval hall tap dancing war we re tough and able indefatigable our quests we sequin vests and impersonate s a busy life in have to push the pram a lot outdoors on second thought let s not go to is a silly place clop clop clop boom boom angels sing of the don t grovel singing stops thing can t stand it s people groveling boom don t apologise time try to talk to someone it s sorry this and forgive me that and m not worthy boom are you doing now m averting my eyes don t s like those miserable they re so depressing knock it off of the your of the shall have a task to make them an example in these dark times idea it s a good idea angels sing this is the well for it is your sacred task to seek this grail is your purpose the quest for the boom singing stops blessing blessing from the be praised music clop clop clop horn pause is eet is and these are my of the s castle is this is the castle of my master de and tell your master that we have been charged by with a sacred quest he will give us food and shelter for the night he can join us in our quest for the ll ask him but don t think he ll be very keen he s already got one you see says they ve already got one you sure he s got one yes it s very nice a told him we already got one u um can we come up and have a look course not are types a what are you then m do think have this outrageous accent you silly king a are you doing in your own business you will not show us the we shall take your castle by force don t frighten us pig dogs and boil your bottom sons of a silly person blow my nose at you so called you and all your silly k nnnnniggets Thpppppt Thppt Thppt a strange person look here my good man don t wanna talk to you no more you empty headed animal food trough wiper fart in your general direction mother was a hamster and your father smelt of elderberries there someone else up there we could talk to now go away or shall taunt you a second time a sniff this is your last chance ve been more than reasonable Fetchez la vache Fetchez la vache mooo you do not agree to my commands then shall twong mooooooo thud mayhem this one is for your mother you go mayhem this one s for your dad away away Thppppt taunting ll tear them apart no no have a plan sir later wind saw saw saw saw saw saw saw saw saw saw saw saw saw saw saw saw clunk bang rewr squeak squeak squeak squeak squeak squeak squeak squeak squeak squeak rrrr rrrr rrrr drilllll sawwwww clunk crash clang squeak squeak squeak squeak squeak creak whispering est un lapin lapin de bois cadeau present un cadeau oui s go y va magne here squeak squeak squeak squeak squeak clllank happens now now uh and uh wait until nightfall and then leap out of the rabbit taking the uh by surprise only by surprise but totally unarmed leaps out u uh and leap out of the rabbit uh and uh l look i i if we built this large wooden badger clank twong away away away away away away away away haw haw haw haw haw heh clack for take eight at the castle seems to have utterly disheartened ferocity of the taunting took him completely by surprise and became convinced that a new strategy was required if the quest for the were to be brought to a successful conclusion having consulted his closest knights decided that they should separate and search for the individually clop clop clop this is what they did slash kills trumpets of each of the knights went their separate ways rode north through the dark forest of accompanied by his favorite minstrels singing bold rode forth from was not afraid to die brave was not at all afraid to be killed in nasty ways brave brave brave was not in the least bit scared to be mashed into a pulp to have his eyes gouged out and his elbows broken have his kneecaps split and his body burned away his limbs all hacked and mangled brave head smashed in and his heart cut out his liver removed and his bowels unplugged his nostrils raped and his bottom burned off his pen s that s uh that s enough music for now lads like there s dirty work afoot syndicalism is a way of preserving freedom forget about freedom haven t got enough mud art thou singing is brave brave who up n n n nobody really m j j j ju just um just passing through do you want singing fight and up oo a nothing nothing really uh j j just just to um just to p pass through good m afraid not well actually am a of the re a of the am that case shall have to kill you don t think so what do think think kill him let s be nice to him shut up could you quick the sword out want to cut his headoff cut your own head off do us all a favor on all the time re lucky re not next to him do you mean snore don t you ve got bad breath it s only because you don t brush my teeth stop bitching and let s go have tea all right right right ll kill him first and then have tea and biscuits not biscuits right right not biscuits but let s kill him anyway buggered off he has s scarper singing ran away singing ran away away didn t singing danger reared its ugly head he bravely turned his tail and fled singing brave turned about didn t singing gallantly he chickened out bravely taking to his feet never did singing beat a very brave retreat lies singing of the brave never chanting domine dona eis requiem heh heeh ooh twang chanting domine splash ho wayy twang splash heh heh heh ho heh heh chanting dona eis requiem twang twang whispering me for asking trumpets of boom wind howl howl boom angels singing howl boom howl boom pound pound pound the door the door pound pound pound the name of open the door squeak thump squeak boom gentle to the it s not a very good name is it but we are nice and we will attend to your every every need are the keepers of the what is here but you are tired and you must rest awhile and a bed for our guest and thank you you you you you you away varletesses beds here are warm and soft and very very big look uh is your name handsome knight the is but come please s name show me the you have suffered much are delirious look have seen it is here in this would not be so ungallant as to refuse our hospitality uh am afraid our life must seem very dull and quiet compared to yours are but eight score young blondes and brunettes all between sixteen and nineteen and a half cut off in this castle with no one to protect us is a lonely life bathing dressing undressing making exciting underwear are just not used to handsome knights may lie here but you are wounded no it s it s nothing you must see the doctors immediately no please down clap clap what seems to be the trouble re doctors they have a basic medical training yes but come come must try to rest your art to relax you sure that s absolutely necessary must examine you s nothing wrong with that are doctors cannot be am sworn to chastity to your bed once me no longer have seen the s no grail here have seen it have seen it clank have seen am s identical twin sister well excuse me are you going seek the have seen it here in this castle no no bad what is it wicked bad naughty has been setting alight to our beacon which have just remembered is grail shaped s not the first time we ve had this problem s not the real wicked bad naughty evil is a bad person and must pay the penalty you think this scene should have been cut were so worried when the boys were writing it but now we re glad s better than some of the previous scenes think least ours was better visually at least ours was committed wasn t just a string of pussy jokes on with it get on with it get on with it am enjoying this scene on with it sigh wicked wicked she is a naughty person and she must pay the penalty here in we have but one punishment for setting alight the grail shaped beacon must tie her down on a bed and spank her spanking spanking must spank her well after you have spanked her you may deal with her as you like then spank me spank me me me yes you must give us all a good spanking spanking spanking is going to be a spanking tonight after the spanking the oral sex oral sex oral sex could stay a bit longer hello are in great peril he isn t foul temptress know she s got a point on will cover your escape m fine on can tackle this lot single handed him tackle us single handed him tackle us single handed on can cope can handle this lot easily yes him handle us easily him handle us easily can defeat them s only a hundred and fifty of them yes will beat us easily haven t a chance haven t a chance will beat us easily boom shit were in the nick of time were in great peril don t think was you were were in terrible peril let me go back in there and face the peril it s too perilous it s my duty as a knight to sample as much peril as can we ve got to find the on let me have just a little bit of peril s unhealthy bet you re gay m not had saved from almost certain temptation but they were still no nearer the and not more than a swallow s flight away had discovered something that s an unladen swallow s flight obviously mean they were more than two laden swallows flights away four really if they had a coconut on a line between them mean if the birds were walking and dragging on with it anyway to scene twenty four which is a smashing scene with some lovely acting in which discovers a vital clue and in which there aren t any swallows although think you can hear a starling oooh hee ha ha hee hee hee hee ha ha ha this enchanter of whom you speak he has seen the ha ha ha hee ha ha hee hee ha ha ha ha does he live heh heh heh man where does he live ha ha ha knows of a cave a cave which no man has entered the is there is much danger for beyond the cave lies the of which no man has ever crossed the is the you the of of which leads to the hee hee hee hee ha ha ha ha ha ha spooky music music stops are you are the the same are they are the keepers of the sacred words and wom wom who hear them seldom live to tell the tale demand a sacrifice of we are but simple travellers who seek the enchanter who lives beyond these woods shall say ni again to you if you do not appease us what is it you want want a shrubbery dramatic chord what and please more will find you a shrubbery must return here with a shrubbery or else you will never pass through this wood alive of you are just and fair and we will return with a shrubbery that looks nice course not too expensive go trumpets hmm boom scott boom mumble mumble mumble boom mumble mumble mumble boom mumble mumble mumble boom mumble mumble mumble boom mumble mumble mumble boom mumble mumble mumble boom mumble mumble mumble boom mumble mumble mumble boom crash mumble mumble mumble boom up boom up boom boom up that that boom up that boom on off on away away away you off sniff mumble mumble mumble bells weather of day lad all this will be yours the curtains the curtains lad that you can see stretched out over the hills and valleys of this land ll be your kingdom lad lad b but don t want any of that lad built this kingdom up from nothing started here all there was was swamp kings said was daft to build a castle on a swamp but built it all the same just to show em sank into the swamp built a second one sank into the swamp built a third one burned down fell over then sank into the swamp the fourth one stayed up that s what you re gonna get lad the strongest castle in these islands don t want any of that d rather what d rather music just sing that that re not going into a song while m here listen lad twenty minutes you re getting married to a girl whose father owns the biggest tracts of open land in but don t want land live in a bloody swamp need all the land we can get but don t like her t like her s wrong with her s beautiful s rich s got huge tracts o land know but want the the girl that marry to have music a certain special something that out that out you re marrying so you d better get used to the idea smack sure the doesn t leave this room until come and get him to leave the room even if you come and get him no come and get him you come and get him we re not to enter the room no stay in the room and make sure he doesn t leave you ll come and get him don t need to do anything apart from just stop him entering the room no the room the room sniff right if if if uhh if if w ehh i if if we is it i if i oh it s quite simple just stay here and make sure e doesn t leave the room remember can he leave the room with us no no just keep him in here and make sure he yes ll keep him in here obviously if he had to leave and we were with him no no no keep him in here you or anyone else not anyone else me you back back right ll stay here until you get back uh make sure he doesn t leave sure e doesn t leave sure e doesn t leave yes of course thought you meant him know it seemed a bit daft me havin to guard him when he s a guard that clear quite clear problems are you going re coming with you no want you to stay here and make sure e doesn t leave see your noise you get that suit on music no singing go and get a glass of water clank scribble scribble scribble fold fold twong taken you sir kind again we go now the big one on thwonk for you sir fwump to me whoever finds this note have been imprisoned by my father who wishes me to marry against my will please please come and rescue me am in the of last call cry of distress could be the sign that leads us to the brave you shall not have died in vain m m not quite dead sir you shall not have been mortally wounded in vain think c could pull through sir see think m all right to come with you sir no sweet here will send help as soon as have accomplished a daring and heroic rescue in my own particular sigh sir feel fine actually sir sweet ll um ll just stay here then sir inside castle and giggle giggle giggle outside castle ptoo ha etc and giggle giggle giggle ha ha take this you re not allowed to enter the room aaugh fair one behold your humble servant of have come to take y m terribly sorry got my note well got a a note ve come to rescue me well no see hadn t knew someone would knew that somewhere out there music there must be someone that that it it are you m your son not you am sir s come to rescue me let s not jump to conclusions you kill all those guards yes cost fifty pounds each m awfully sorry really can explain everything t be afraid of him ve got a rope all ready killed eight wedding guests in all uh you see the thing is thought your son was a lady can understand that up only killed the bride s father that s all really didn t mean to t mean to put your sword right through his head dear he all right even kicked the bride in the chest is going to cost me a fortune can explain was in the forest um riding north from when got this note you see you from uh am a of sir nice castle very good pig country it m ready you uh like to come and have a drink that that s uh awfully nice of you am ready um mean to be so understanding thonk woosh m afraid when m in this idiom sometimes get a bit uh sort of carried away don t worry about that splat crying this is the main hall re going to have all this knocked through and made into one big uh living room he is bloody hell ha ha ha it it it it it it it see what mean just get carried away m really most awfully sorry everyone s killed the best man yelling it it it is from the of a very brave and influential knight and my special guest here today killed my auntie yelling is supposed to be a happy occasion s not bicker and argue about who killed who are here today to witness the union of two young people in the joyful bond of the holy wedlock one of them my son has just fallen to his death no don t want to think ve not lost a son so much as gained a daughter clap clap clap since the tragic death of her father s not quite dead the near fatal wounding of her father s getting better since her own father who when he seemed about to recover suddenly felt the icy hand of death upon him he s died want his only daughter to look upon me as her old dad in a very real and legally binding sense clap clap clap feel sure that the merger er the union between the and the brave but dangerous of dead dead s not quite dead feel much better fell out of the you creep was saved at the last minute ll tell you music like that like that it singing s going to tell s going to tell uuup singing s going to tell up singing s going to tell up singing s going to tell like that singing s going to tell s going to tell s going to tell s going to tell sir singing s going to tell this way singing s going to tell s going to tell s not right for my idiom singing s going to tell about his great escape must escape more sigh singing he fell a long long way sir singing he s here with us today crash singing a wonderful escape me uh could somebody give me a push please music clop clop clop rewr rewr rewr rewr rewr rewr crone rewr music stops there anywhere in this town where we could buy a shrubbery dramatic chord sent you have no shrubberies here you do not tell us where we can buy a shrubbery my friend and will say we will say ni your worst well you will not assist us voluntarily ni shrubberies cough no no no it s not that it s ni no ni re not doing it properly and s it s it ve got it and you saying ni to that old woman yes what sad times are these when passing ruffians can ni at will to old ladies is a pestilence upon this land is sacred those who arrange and design shrubberies are under considerable economic stress at this period in history you say shrubberies are my trade am a shrubber name is the arrange design and sell shrubberies no no of we have brought you your shrubbery we go now is a good shrubbery like the laurels particularly there is one small problem is that are now no longer the are now the ecky ecky ecky pikang zoop boing goodem zoo owli zhiv we must give you a test is this test of you must find another shrubbery dramatic chord another shrubbery when you have found the shrubbery you must place it here beside this shrubbery only slightly higher so you get the two level effect with a little path running down the middle path path path when you have found the shrubbery you must cut down the mightiest tree in the forest with a herring dramatic chord shall do no such thing please down a tree with a herring can t be done t say that word word cannot tell suffice to say is one of the words the of cannot hear can we not say the word if you don t tell us what it is said it again is not is not is wouldn t get vary far in life not saying is not is is liege it s singing it in and packing it up sneaking away and buggering up chickening out and pissing off home bravely he is throwing in the sponge liege s good to see you he s said the word you ve not given up your quest for the singing is sneaking away and buggering up up no from it said the word again was looking for it here here in this forest it is far from this place saying the word word stop it we cannot hear said it again said it said it clop clop clop said it again there again s three it s so and and set out on their search to find the enchanter of whom the old man had spoken in scene twenty four the forest they met and and there was much rejoicing woosh the frozen land of they were forced to eat s minstrels high pitched back there was much rejoicing year passed shivering changed into nice changed into changed back into gave and a miss and went straight on into snap one day music clop clop clop music stops boom it boom boom boom boom boom squeak boom boom boom boom manner of man are you that can summon up fire without flint or tinder am an enchanter what name are you known are some who call me the know my name do zoosh seek the is our quest know much that is hidden pweeng boom clap clap clap we re we re looking for the quest is to find the is is so we re we re we re we re looking for it we are are are have been for some time uh so uh anything that you could do to uh to help would be very helpful can you tell us where boom don t want to waste any more of your time but uh don t suppose you could uh tell us where we might find a um find a uh a um a uh what g a a g a g a a g grail think so y yes s it you you boom pweeng boom boom um you re a busy man uh can help you find the thank you the north there lies a cave the cave of wherein carved in mystic runes upon the very living rock the last words of of boom make plain the last resting place of the most could we find this cave only if ye be men of valor for the entrance to this cave is guarded by a creature so foul so cruel that no man yet has fought with it and lived of full fifty men lie strewn about its lair brave knights if you do doubt your courage or your strength come no further for death awaits you all with nasty big pointy teeth an eccentric performance clop clop clop whinny whinny re nervous sire we d best leave them here and carry on on foot mount the cave of me covered with just keep me covered late dramatic chord he is behind the rabbit is the rabbit silly sod got us all worked up that s no ordinary rabbit s the most foul cruel and bad tempered rodent you ever set eyes on tit soiled my armor was so scared that rabbit s got a vicious streak a mile wide it s a killer stuffed ll do you up a treat mate yeah mangy scots git m warning you s he do nibble your bum s got huge sharp eh he can leap about look at the bones on his head off little bleeder rabbit stew comin right up squeak dramatic chord clunk warned you done it again warned you but did you listen to me no you knew it all didn t you it s just a harmless little bunny isn t it it s always the same always tell them shut up they listen to me no squeak squeak squeak etc away away away away ha ha ha haw haw ha many did we lose s five sir we d better not risk another frontal assault rabbit s dynamite it help to confuse it if we run away more shut up and go and change your armor us taunt it may become so cross that it will make a mistake what ooh we got bows have the of course of one of the sacred relics carries with him up the chanting domine dona eis requiem domine donaeis requiem domine dona eis requiem domine dona eisrequiem does it um how does it work know not my liege the of Chapter verses to one raised the hand grenade up on high saying bless this thy hand grenade that with it thou mayest blow thine enemies to tiny bits in thy mercy the did grin and the people did feast upon the lambs and sloths and carp and anchovies and orangutans and breakfast cereals and fruit bats and large chu a bit the spake saying shalt thou take out the shalt thou count to three no more no less shalt be the number thou shalt count and the number of the counting shall be three shalt thou not count nor either count thou two excepting that thou then proceed to three is right out the number three being the third number be reached then lobbest thou thy of towards thy foe who being naughty in my sight shall snuff it two five sir angels sing boom does it say language is that are a scholar s course of does it say reads may be found the last words of of who is valiant and pure of spirit may find the in the of uuggggggh the of uuggggggh is that must have died while carving it come on that s what it says if he was dying he wouldn t bother to carve aaggggh d just say it that s what s carved in the rock he was dictating shut up does it say anything else uuggggggh you suppose he meant the s that think t there a in that s yes no at the back of the throat no no no no in surprise and alarm you mean sort of a aaaah but aaaaaah dramatic chord roar s the legendary of of eats s it s it away away roar away awaaay awaaaaay roar running boom roar ve lost him roar the horrendous lunged forward escape for and his knights seemed hopeless when suddenly the animator suffered a fatal heart attack thump cartoon peril was no more quest for could continue gurgle it is of great s the old man from scene twenty four is he doing here is the keeper of the of asks each traveller five questions questions questions who answers the five questions questions questions may cross in safety if you get a question wrong you are cast into the of won t go s going to answer the questions you go ve got a great idea doesn t go me go my liege will take him single handed shall make a feint to the north east that s no on on on answer the five questions questions questions as best you can we shall watch and pray understand my liege luck brave be with you would cross the of must answer me these questions three ere the other side he see me the questions bridgekeeper am not afraid is your name name is of is your quest seek the is your favorite color you go thank you you very much s easy approacheth the of must answer me these questions three ere the other side he see me the questions bridgekeeper m not afraid is your name of is your quest seek the is the capital of don t know that is your name of is your quest seek the is your favorite color yel auuuuuuuugh hee heh is your name is of the is your quest seek the is the air speed velocity of an unladen swallow do you mean or swallow don t know that do know so much about swallows you have to know these things when you re a king you know suspenseful music music suddenly stops intermission suspenseful music resumes police radio angels sing singing stops ethereal music quest is at an end be praised we thank that hast vouchsafed to us the most holy twong baaaa thud dappy k niggets and who has the brain of a duck you know we fellows outwit you a second time dare you profane this place with your presence command you in the name of the of to open the doors of this sacred castle to which has guided us you say one more time mac unclog my nose in your direction sons of a window dresser you think you could out clever us folk with your silly knees bent running about advancing behaviour wave my private parts at your aunties you cheesy lot of second hand electric donkey bottom biters the name of the we demand entrance to this sacred castle chance bed wetting types burst my pimples at you and call your door opening request a silly thing you tiny brained wipers of other people s bottoms you do not open this door we shall take this castle by force splat the name of and the glory of our splat laughing settles it depart a lot at this time and cut the approaching any more or we fire arrows at the tops of your heads and make castanets out of your testicles already ha haaa ha away ignore them now remain gone illegitimate faced bugger folk if you think you got a nasty taunting this time you ain t heard nothing yet dappy k nnniggets Thpppt taunting shall attack at once my liege by for attack exciting music music stops silence persons taunting the blood of many a valiant knight shall be avenged the name of hoo ha ha ha ha ha we shall not stop our fight til each one of you lies dead and the returns to those whom has chosen ha ha police siren re the ones m sure on armed must go too right on that one away pull it off on along this man in the van off on whom one this one on him in the van a blanket have no hospital squeak on back on along along that off that s an offensive weapon that is on with em along squeak right sonny s enough pack that in crash
sent = ['she', 'sells', 'sea', 'shells', 'by', 'the', 'sea', 'shore']
for word in sent:
if word.startswith('sh'):
print(word)
she shells shore
for word in sent:
if len(word) > 4:
print(word)
sells shells shore
sum(len(word) for word in sentence3) # summiert die Länge aller wörter in satz3
22
sentence3
['Moby', 'Dick', 'is', 'a', 'white', 'whale', '.']
len(sentence3) # wie viele wörter hat satz3
7
sum(len(word) for word in sentence3) / len(sentence3) # durchschnittliche wortlänge satz3
3.142857142857143
def vocab_size(text):
return len(set(text))
vocab_size(sentence3)
7
vocab_size(text1)
19317
def percentage0(word, text):
return text.count(word)
percentage0('whale', sentence3)
1
def percentage1(word, text):
return len(text)
percentage1(word, sentence3)
7
def percentage(word, text):
return text.count(word) / len(text) * 100
percentage('whale', sentence3)
14.285714285714285