arithmetic expressions
2-1
1
3-9
-6
10008349*393827
3941558061623
true or false
4>=4
True
82*120>723+231
True
234+567>1234
False
smiley=12
smiley
12
smiley=":)"
smiley
':)'
len("it was the best of times, it was the worst of times")
51
"bee" in "bumblebee"
True
Other methods
"it was the best of times, it was the worst of times".find("the")
7
"it was the best of times, it was the worst of times".count("the")
2
String transformations
"it was the best of times, it was the worst of times".upper()
'IT WAS THE BEST OF TIMES, IT WAS THE WORST OF TIMES'
"IT WAS THE BEST OF TIMES, IT WAS THE WORST OF TIMES".lower()
'it was the best of times, it was the worst of times'
"IT WAS THE BEST OF TIMES, IT WAS THE WORST OF TIMES".title()
'It Was The Best Of Times, It Was The Worst Of Times'
"IT WAS THE BEST OF TIMES, IT WAS THE WORST OF TIMES".replace("IT","SHE")
'SHE WAS THE BEST OF TIMES, SHE WAS THE WORST OF TIMES'
text= open ("macbeth.txt").read()
print(text)
Tomorrow, and tomorrow, and tomorrow, Creeps in this petty pace from day to day, To the last syllable of recorded time; And all our yesterdays have lighted fools The way to dusty death. Out, out, brief candle! Life's but a walking shadow, a poor player, That struts and frets his hour upon the stage, And then is heard no more. It is a tale Told by an idiot, full of sound and fury, Signifying nothing.
lists
num = [22039,1,938,23,120,3]
--------------------------------------------------------------------------- NameError Traceback (most recent call last) /var/folders/62/5lp6p7912j3158w4rp7fbfx80000gn/T/ipykernel_15416/1042022009.py in <module> ----> 1 text NameError: name 'text' is not defined
fruits =["apples","pears","mangos","strawberries"]
glue = "- and "
glue.join(fruits)
'apples- and pears- and mangos- and strawberries'
import random
[line for line in open("macbeth.txt")]
['Tomorrow, and tomorrow, and tomorrow,\n', 'Creeps in this petty pace from day to day,\n', 'To the last syllable of recorded time;\n', 'And all our yesterdays have lighted fools\n', 'The way to dusty death. Out, out, brief candle!\n', "Life's but a walking shadow, a poor player,\n", 'That struts and frets his hour upon the stage,\n', 'And then is heard no more. It is a tale\n', 'Told by an idiot, full of sound and fury,\n', 'Signifying nothing.']
import random
import textwrap
newspaper = """
Dada was an informal international movement, with
participants in Europe and North America. The
beginnings of Dada correspond to the outbreak of
World War I. For many participants, the movement
was a protest against the bourgeois nationalist
and colonialist interests, which many Dadaists
believed were the root cause of the war, and
against the cultural and intellectual
conformity — in art and more broadly in
society — that corresponded to the war."""
words = newspaper.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
many Dada and art informal that were movement, intellectual society outbreak broadly with the a The the and in in corresponded was participants I. and the in — colonialist of participants, the was protest Dada an more to believed of bourgeois conformity nationalist of many against Dadaists beginnings movement war. interests, cultural — For international war, cause the the America. against which and to Europe and the correspond War root World North
text
"Tomorrow, and tomorrow, and tomorrow,\nCreeps in this petty pace from day to day,\nTo the last syllable of recorded time;\nAnd all our yesterdays have lighted fools\nThe way to dusty death. Out, out, brief candle!\nLife's but a walking shadow, a poor player,\nThat struts and frets his hour upon the stage,\nAnd then is heard no more. It is a tale\nTold by an idiot, full of sound and fury,\nSignifying nothing."
print(text)
Tomorrow, and tomorrow, and tomorrow, Creeps in this petty pace from day to day, To the last syllable of recorded time; And all our yesterdays have lighted fools The way to dusty death. Out, out, brief candle! Life's but a walking shadow, a poor player, That struts and frets his hour upon the stage, And then is heard no more. It is a tale Told by an idiot, full of sound and fury, Signifying nothing.
import random
import textwrap
words = text.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
stage, is petty recorded out, then To from and Signifying the Out, last no day poor our all fury, day, this walking upon tale more. and It That brief struts a And but a And dusty an time; frets tomorrow, death. pace heard yesterdays Creeps Life's The by fools to his full in the syllable hour a of player, Tomorrow, nothing. sound have lighted and tomorrow, Told idiot, of way candle! to shadow, and is
import random
materials = [
'brick',
'broken dishes',
'discarded clothing',
]
locations = [
'among high mountains',
'among other houses',
'among small hills',
]
lights = [
'all available lighting',
'candles',
'electricity',
'natural light'
]
inhabitants = [
'all races of men represented wearing predominantly red clothing',
'children and old people',
]
--------------------------------------------------------------------------- NameError Traceback (most recent call last) /var/folders/62/5lp6p7912j3158w4rp7fbfx80000gn/T/ipykernel_15416/1150517656.py in <module> ----> 1 lights NameError: name 'lights' is not defined
text= open ("macbeth.txt").read()
print(text)
Tomorrow, and tomorrow, and tomorrow, Creeps in this petty pace from day to day, To the last syllable of recorded time; And all our yesterdays have lighted fools The way to dusty death. Out, out, brief candle! Life's but a walking shadow, a poor player, That struts and frets his hour upon the stage, And then is heard no more. It is a tale Told by an idiot, full of sound and fury, Signifying nothing.
import random
import textwrap
words = text.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
of poor frets idiot, a the Signifying stage, syllable day Tomorrow, and hour brief recorded And in Out, an shadow, yesterdays is fury, then tale fools our and a a dusty sound more. death. tomorrow, by full Told his player, heard way Life's of candle! out, petty from the to this to struts walking and Creeps and last no have To lighted The upon tomorrow, day, And but pace all time; is It nothing. That
import random
import textwrap
words = text.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
all a struts To recorded by hour tomorrow, and fury, is and walking shadow, fools more. idiot, lighted heard Life's his sound upon to the no time; our And brief is and That way to pace syllable and day, an death. have frets but day full a out, yesterdays poor tale Out, in last from The nothing. the Creeps candle! this then of petty dusty a Tomorrow, It stage, tomorrow, player, of And Signifying Told
import random
import textwrap
words = text.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
idiot, Creeps candle! Tomorrow, day petty an have way and is of fury, upon full hour shadow, the heard frets tomorrow, struts Out, a a in by no Life's and The more. of the his day, to from Signifying a lighted but tomorrow, It stage, brief and That our walking is To recorded and dusty player, all then syllable fools nothing. to this death. tale Told time; And sound last pace poor out, And yesterdays
bee ="The book \"Tale of Two Cities\" is very popular"
print (bee)
The book "Tale of Two Cities" is very popular
import random
import textwrap
words = bee.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
Two The "Tale book very of Cities" popular is
import random
import textwrap
words = text.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
upon syllable a player, by shadow, nothing. pace is It but a stage, and And candle! Creeps That Tomorrow, the all death. fury, his to the our heard Life's have day, time; frets and lighted poor hour out, Signifying petty tomorrow, of fools day idiot, full from more. this brief Told And yesterdays To is an dusty no struts tomorrow, The and tale sound way last Out, recorded to then in and of a walking
import random
import textwrap
words = text.split()+bee.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
out, lighted Signifying the yesterdays a syllable pace in nothing. and fools and tomorrow, To popular sound heard brief recorded petty to is an way And upon The our a book the and to from but The a day, idiot, more. poor And very Tomorrow, death. his struts full Out, tomorrow, all Creeps fury, dusty by tale of walking and last of Cities" frets Two no then Told have of shadow, player, time; It Life's hour is day is That this "Tale stage, candle!
"land" in text
False
"day" in text
True
print(text)
Tomorrow, and tomorrow, and tomorrow, Creeps in this petty pace from day to day, To the last syllable of recorded time; And all our yesterdays have lighted fools The way to dusty death. Out, out, brief candle! Life's but a walking shadow, a poor player, That struts and frets his hour upon the stage, And then is heard no more. It is a tale Told by an idiot, full of sound and fury, Signifying nothing.
text.find("l")
88
text.title()
"Tomorrow, And Tomorrow, And Tomorrow,\nCreeps In This Petty Pace From Day To Day,\nTo The Last Syllable Of Recorded Time;\nAnd All Our Yesterdays Have Lighted Fools\nThe Way To Dusty Death. Out, Out, Brief Candle!\nLife'S But A Walking Shadow, A Poor Player,\nThat Struts And Frets His Hour Upon The Stage,\nAnd Then Is Heard No More. It Is A Tale\nTold By An Idiot, Full Of Sound And Fury,\nSignifying Nothing."
text.count("l")
15
text.count("the")
3
text.count("a")
26
text.count("D")
0
text.count("me")
1
text.upper()
"TOMORROW, AND TOMORROW, AND TOMORROW,\nCREEPS IN THIS PETTY PACE FROM DAY TO DAY,\nTO THE LAST SYLLABLE OF RECORDED TIME;\nAND ALL OUR YESTERDAYS HAVE LIGHTED FOOLS\nTHE WAY TO DUSTY DEATH. OUT, OUT, BRIEF CANDLE!\nLIFE'S BUT A WALKING SHADOW, A POOR PLAYER,\nTHAT STRUTS AND FRETS HIS HOUR UPON THE STAGE,\nAND THEN IS HEARD NO MORE. IT IS A TALE\nTOLD BY AN IDIOT, FULL OF SOUND AND FURY,\nSIGNIFYING NOTHING."
print(text.upper())
TOMORROW, AND TOMORROW, AND TOMORROW, CREEPS IN THIS PETTY PACE FROM DAY TO DAY, TO THE LAST SYLLABLE OF RECORDED TIME; AND ALL OUR YESTERDAYS HAVE LIGHTED FOOLS THE WAY TO DUSTY DEATH. OUT, OUT, BRIEF CANDLE! LIFE'S BUT A WALKING SHADOW, A POOR PLAYER, THAT STRUTS AND FRETS HIS HOUR UPON THE STAGE, AND THEN IS HEARD NO MORE. IT IS A TALE TOLD BY AN IDIOT, FULL OF SOUND AND FURY, SIGNIFYING NOTHING.
print(text.lower())
tomorrow, and tomorrow, and tomorrow, creeps in this petty pace from day to day, to the last syllable of recorded time; and all our yesterdays have lighted fools the way to dusty death. out, out, brief candle! life's but a walking shadow, a poor player, that struts and frets his hour upon the stage, and then is heard no more. it is a tale told by an idiot, full of sound and fury, signifying nothing.
print(text.title())
Tomorrow, And Tomorrow, And Tomorrow, Creeps In This Petty Pace From Day To Day, To The Last Syllable Of Recorded Time; And All Our Yesterdays Have Lighted Fools The Way To Dusty Death. Out, Out, Brief Candle! Life'S But A Walking Shadow, A Poor Player, That Struts And Frets His Hour Upon The Stage, And Then Is Heard No More. It Is A Tale Told By An Idiot, Full Of Sound And Fury, Signifying Nothing.
"Tomorrow, and tomorrow, and tomorrow,\nCreeps in ther petty pace from day to day,\nTo the last syllable of recorded time;\nAnd all our yesterdays have lighted fools\nThe way to dusty death. Out, out, brief candle!\nLife's but a walking shadow, a poor player,\nThat struts and frets her hour upon the stage,\nAnd then is heard no more. It is a tale\nTold by an idiot, full of sound and fury,\nSignifying nothing."
macbeth= open ("macbeth.txt").read()
print(macbeth)
Tomorrow, and tomorrow, and tomorrow, Creeps in this petty pace from day to day, To the last syllable of recorded time; And all our yesterdays have lighted fools The way to dusty death. Out, out, brief candle! Life's but a walking shadow, a poor player, That struts and frets his hour upon the stage, And then is heard no more. It is a tale Told by an idiot, full of sound and fury, Signifying nothing.
to_a_child= open ("to_a_child.txt").read()
print(to_a_child)
The leaves talked in the twilight, dear; Hearken the tale they told: How in some far-off place and year, Before the world grew old, I was a dreaming forest tree, You were a wild, sweet bird Who sheltered at the heart of me Because the north wind stirred; How, when the chiding gale was still, When peace fell soft on fear, You stayed one golden hour to fill My dream with singing, dear. To-night the self-same songs are sung The first green forest heard; My heart and the gray world grow young— To shelter you, my bird.
import random
import textwrap
words = macbeth.split()+to_a_child.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
of are bird It was Tomorrow, the way were some fury, sweet Before the all day struts wild, on twilight, The and my syllable from candle! lighted a with the heart Life's dear; Who is the self-same gale at a place a then tale sound world was The heard and My tomorrow, shadow, dreaming brief singing, death. fear, of Creeps recorded dream heart the no yesterdays you, That to the gray year, petty heard; grew to one And have and fill bird. his Told nothing. poor sung a dear. but is How Hearken And day, songs How, To-night soft green talked To frets by fell You To shelter wind tomorrow, hour north You When out, leaves My pace stage, forest still, far-off young— hour this sheltered first and Signifying when the in world fools grow golden told: forest and Because and idiot, they last The to in peace full of in upon tree, our old, stirred; a more. dusty an chiding stayed tale walking me the the time; the I Out, player,
print(words)
['of', 'are', 'bird', 'It', 'was', 'Tomorrow,', 'the', 'way', 'were', 'some', 'fury,', 'sweet', 'Before', 'the', 'all', 'day', 'struts', 'wild,', 'on', 'twilight,', 'The', 'and', 'my', 'syllable', 'from', 'candle!', 'lighted', 'a', 'with', 'the', 'heart', "Life's", 'dear;', 'Who', 'is', 'the', 'self-same', 'gale', 'at', 'a', 'place', 'a', 'then', 'tale', 'sound', 'world', 'was', 'The', 'heard', 'and', 'My', 'tomorrow,', 'shadow,', 'dreaming', 'brief', 'singing,', 'death.', 'fear,', 'of', 'Creeps', 'recorded', 'dream', 'heart', 'the', 'no', 'yesterdays', 'you,', 'That', 'to', 'the', 'gray', 'year,', 'petty', 'heard;', 'grew', 'to', 'one', 'And', 'have', 'and', 'fill', 'bird.', 'his', 'Told', 'nothing.', 'poor', 'sung', 'a', 'dear.', 'but', 'is', 'How', 'Hearken', 'And', 'day,', 'songs', 'How,', 'To-night', 'soft', 'green', 'talked', 'To', 'frets', 'by', 'fell', 'You', 'To', 'shelter', 'wind', 'tomorrow,', 'hour', 'north', 'You', 'When', 'out,', 'leaves', 'My', 'pace', 'stage,', 'forest', 'still,', 'far-off', 'young—', 'hour', 'this', 'sheltered', 'first', 'and', 'Signifying', 'when', 'the', 'in', 'world', 'fools', 'grow', 'golden', 'told:', 'forest', 'and', 'Because', 'and', 'idiot,', 'they', 'last', 'The', 'to', 'in', 'peace', 'full', 'of', 'in', 'upon', 'tree,', 'our', 'old,', 'stirred;', 'a', 'more.', 'dusty', 'an', 'chiding', 'stayed', 'tale', 'walking', 'me', 'the', 'the', 'time;', 'the', 'I', 'Out,', 'player,']
virtual_insanity=open ("virtual_insanity.txt").read()
import random
import textwrap
words = macbeth.split()+virtual_insanity.split()
random.shuffle(words)
print(textwrap.fill(" ".join(words), 60))
be strain nothing. insanity are Futures useless, Always fury, we world, this changing nothing When technology to, breathe this will giving yeah a Of virtual nothing's livin' we can death. pray was they that Has time tell Oh, there this of we're this new I what be we just That twisting, petty for lighted love and and mess all - this in every out, we fools in day, ya) sound to we're And is think Tomorrow, insanity And to And there's Signifying not No these last got these it's yeah know that's same change begin to for made we to our this at Only so change - Who never could upon frets my new all all all useless, can we way left Cos the of can't his all Life's no to insanity love thinking new we're Is told live insanity yesterday we're be now is The I'm is Always found made to idiot, what what that governed I a no half I just, There's - To struts big - from way in twisting, virtual there For just doing we we made I live Oh, go now this seem always love a Futures ties where of Future's give more got but I'm religion stage, world live that of the Well I tomorrow, immersed can't dusty live For sound now men by child on be virtual - take sound livin Oh in to a walking to, the is things to Cos' her Of in, Oh, And insanity Hard way now now can Oh, Now If eat And more. never virtual love worse is Told can't insanity recorded do That all by have we us then I And be a we'll synthesize give going choose living oh, slip Waoh Futures can Oh, That's small heard there we're insane us If syllable shadow, Things, sickly have govern'd our now but in crazy hour we have what we What it's poor in its can't Virtual underground underground livin' technology tomorrow, technology we're have our should that so nature's underground See, oh there see virtual sin twisting, time; seem day virtual to keep but insanity, virtual no now change, it's world a tale in govern'd it I see will - to is on, made man tell that it know - spells is player, of new be for Always now a no nothing Creeps by It's told we Forget sound no useless, said seem by mother, livin' underground all I all another that has earthly has I and to brief we're be And our of to, virtual to I be yesterdays wonder that the have And can't (Let are And bad for the me insanity For candle! the sound your something going magic It be the There's now To And virtual living pace full an have reality live for in things Out, yeah in While colour and is
import random
[line for line in open("macbeth.txt")]
['Tomorrow, and tomorrow, and tomorrow,\n', 'Creeps in this petty pace from day to day,\n', 'To the last syllable of recorded time;\n', 'And all our yesterdays have lighted fools\n', 'The way to dusty death. Out, out, brief candle!\n', "Life's but a walking shadow, a poor player,\n", 'That struts and frets his hour upon the stage,\n', 'And then is heard no more. It is a tale\n', 'Told by an idiot, full of sound and fury,\n', 'Signifying nothing.']
[line for line in open("virtual_insanity.txt")]
['Oh yeah\n', "What we're living in\n", '(Let me tell ya)\n', "It's a wonder men can eat at all\n", 'When things are big that should be small\n', "Who can tell what magic spells we'll be doing for us\n", "And I'm giving all my love to this world\n", 'Only to be told\n', "I can't see\n", "I can't breathe\n", 'No more will we be\n', "And nothing's going to change the way we live\n", "Cos' we can always take but never give\n", 'And now that things are changing for the worse\n', "See, its a crazy world we're living in\n", "And I just can't see that half of us immersed in sin\n", 'Is all we have to give these -\n', "Future's made of virtual insanity now\n", 'Always seem to, be governed by this love we have\n', 'For useless, twisting, our new technology\n', 'Oh, now there is no sound - for we all live underground\n', "And I'm thinking what a mess we're in\n", 'Hard to know where to begin\n', 'If I could slip the sickly ties that earthly man has made\n', 'And now every mother, can choose the colour\n', 'Of her child\n', "That's not nature's way\n", "Well that's what they said yesterday\n", "There's nothing left to do but pray\n", "I think it's time I found a new religion\n", "Waoh - it's so insane\n", 'To synthesize another strain\n', "There's something in these\n", 'Futures that we have to be told\n', 'Futures made of virtual insanity - now\n', "Always seem to, be govern'd by this love we have\n", 'For useless, twisting, our new technology\n', 'Oh, now there is no sound - for we all live underground\n', 'Now there is no sound\n', 'If we all live underground\n', "And now it's virtual insanity\n", 'Forget your virtual reality\n', "Oh, there's nothing so bad\n", 'I know yeah\n', "Of this virtual insanity, we're livin in\n", 'Has got to change, yeah\n', 'Things, will never be the same\n', "And I can't go on\n", "While we're livin' in oh, oh virtual insanity\n", 'Oh, this world, has got to change\n', "Cos I just, I just can't keep going on, it was virtual\n", "Virtual insanity that we're livin' in, that we're livin' in\n", 'That virtual insanity is what it is\n', 'Futures made of virtual insanity - now\n', "Always seem to, be govern'd by this love we have\n", 'For useless, twisting, our new technology\n', 'Oh, now there is no sound - for we all live underground']
[line.strip() for line in open("macbeth.txt")]
['Tomorrow, and tomorrow, and tomorrow,', 'Creeps in this petty pace from day to day,', 'To the last syllable of recorded time;', 'And all our yesterdays have lighted fools', 'The way to dusty death. Out, out, brief candle!', "Life's but a walking shadow, a poor player,", 'That struts and frets his hour upon the stage,', 'And then is heard no more. It is a tale', 'Told by an idiot, full of sound and fury,', 'Signifying nothing.']
sorted(macbeth)
['\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '!', "'", ',', ',', ',', ',', ',', ',', ',', ',', ',', ',', ',', '.', '.', '.', ';', 'A', 'A', 'C', 'I', 'L', 'O', 'S', 'T', 'T', 'T', 'T', 'T', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'b', 'b', 'b', 'b', 'c', 'c', 'c', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'g', 'g', 'g', 'g', 'g', 'g', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'k', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'm', 'm', 'm', 'm', 'm', 'm', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'p', 'p', 'p', 'p', 'p', 'p', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'v', 'w', 'w', 'w', 'w', 'w', 'w', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y']
print (macbeth)
Tomorrow, and tomorrow, and tomorrow, Creeps in this petty pace from day to day, To the last syllable of recorded time; And all our yesterdays have lighted fools The way to dusty death. Out, out, brief candle! Life's but a walking shadow, a poor player, That struts and frets his hour upon the stage, And then is heard no more. It is a tale Told by an idiot, full of sound and fury, Signifying nothing.
import json