import random Animal = ['dog', 'cat', 'goat','cheetah'] Verb = ['dash', 'run', 'slide'] Plural_Noun = ['stockings','batteries','sour gummy worms'] Location = ['fireplace', 'door', 'closet'] People = ['children', 'babies', 'old people'] Piece_Of_Clothing = ['robe', 'nightgown', 'slippers'] Piece_Of_Furniture = ['bed', 'couch', 'chair'] Place_In_House = ['bathroom', 'window', 'upstairs'] Body_Part = ['stomach', 'cheek', 'nose'] Plural_Body_Parts = ['cheeks', 'feet', 'hands'] Noun = ['sleigh', 'stocking', 'phone'] Adjective = ['small', 'nimble', 'red'] Name = ['Tyler', 'Jonni', 'Nathan', 'Dorian', 'Carly', 'Dom', 'Kenny'] Location_Outside_House = ['rooftop', 'backyard', 'mall'] Plural_Animal = ['reindeer', 'dogs', 'goats'] Period_Of_Time = ['moment', 'second', 'instant'] Famous_Person = ['Donald Trump', 'Michael Jackson', 'Santa Clause'] Clothing_Material = ['fur', 'velour', 'cotton'] An_Article_Of_Clothing = ['shirt', 'boots', 'pants'] Type_Of_Person= ['pedler', 'thief', 'homeless man'] Past_Tense_Verb = ['twinkled', 'exclaimed', 'stirred'] Holiday = ['Christmas', 'Halloween', 'Fourth of July'] Type_Of_Gesture = ['spaz', 'flick', 'wave'] Part_Of_Face = ['nose', 'eye', 'mouth'] print "'Twas the night before " + random.choice(Holiday) + ", when all through the house not a " + random.choice(Animal) + " was stirring, not even a mouse;" print "The " + random.choice(Plural_Noun) + " were hung by the " + random.choice(Location) + " with care, in hopes that St. Nicholas soon would be there;" print "The " + random.choice(People) + " were nestled all snug in their beds, while visions of " + random.choice(Plural_Noun) + " danced in their heads;" print "And momma in her " + random.choice(Piece_Of_Clothing) + ", and I in my cap, had just settled down for a long winter's nap, when out on the lawn there arose such a clatter," print "I sprang from the " + random.choice(Piece_Of_Furniture) + " to see what was the matter." print "Away to the " + random.choice(Place_In_House) + " I flew like a flash, tore open the " + random.choice(Plural_Noun) + " and threw up the sash." print "When, what to my wondering " + random.choice(Body_Part) + " should appear, but a miniature " + random.choice(Noun) + " and eight tiny reindeer, with a " + random.choice(Adjective) + " old driver, so " + random.choice(Adjective) + " and quick, I knew in a moment it must be St. Nick." print "More rapid than eagles his coursers they came, and he whistled and shouted, and called them by name;" print "'Now " + random.choice(Name) + "! Now " + random.choice(Name) + "! Now " + random.choice(Name) + "! and " + random.choice(Name) + "! On, " + random.choice(Name) + "! On " + random.choice(Name) + "! On " + random.choice(Name) + "! and " + random.choice(Name) + "!" print "To the top of the " + random.choice(Location_Outside_House) + "! To the top of the wall! " + random.choice(Verb) + "! Dash away all!" print "So up to the house-top the " + random.choice(Plural_Animal) + " they flew, with the sleigh full of " + random.choice(Plural_Noun) + ", and St. Nicholas too. And then, in a " + random.choice(Period_Of_Time) + "," print "I heard on the roof the prancing and pawing of each little hoof. As I drew in my " + random.choice(Body_Part) + ", and was turning around, down the chimney " + random.choice(Famous_Person) + " came with a bound." print "He was dressed all in " + random.choice(An_Article_Of_Clothing) + ", from his head to his foot, and his " + random.choice(Piece_Of_Clothing) + " were all tarnished with " + random.choice(Noun) + " and soot; a bundle of " + random.choice(Noun) + " he had flung on his back;" print "and he looked like a " + random.choice(Type_Of_Person) + " just opening his pack. His eyes -- how they " + random.choice(Past_Tense_Verb) + "! His " + random.choice(Body_Part) + " how merry!" print "His " + random.choice(Plural_Body_Parts) + " were like roses, his " + random.choice(Body_Part) + " like a cherry! His " + random.choice(Adjective) + " " + random.choice(Body_Part) + " was drawn up like a bow," print "and the beard of his " + random.choice(Part_Of_Face) + " was white as the snow; he had a " + random.choice(Adjective) + " " + random.choice(Body_Part) + " and a little round belly, that shook when he laughed like a bowlful of jelly." print "He was " + random.choice(Adjective) + " and " + random.choice(Adjective) + ", a right jolly old elf, and I laughed when I saw him, in spite of myself;" print "a " + random.choice(Type_Of_Gesture) + " of his " + random.choice(Body_Part) + " and a twist of his head, soon gave me to know I had nothing to dread; he " + random.choice(Verb) + " not a " + random.choice(Noun) + "," print "but went straight to his work, and filled all the " + random.choice(Plural_Noun) + " then turned with a jerk, and laying his " + random.choice(Body_Part) + " aside of his " + random.choice(Body_Part) + ", then giving a nod up the chimney he rose," print "but I heard him exclaim as he " + random.choice(Past_Tense_Verb) + " out of sight, 'Merry " + random.choice(Holiday) + " to all and to all a good night!'"
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question