#This is a sentence generator that generates cheesy compliments/pickup lines. Just made your loved one angry? Use this import random def make_sentence(start, middle, end, n=1): # this will shuffle the lists random.shuffle(start) random.shuffle(middle) random.shuffle(end) # concatinate the parts of the sentences list_of_sentences = [] for word in range(n): try: list_of_sentences = start[word] + ' ' + middle[word] + ' ' + end[word] list_of_sentences = list_of_sentences.capitalize() + '. ' except IndexError: break return list_of_sentences #part1 of the sentence---noun/subject part1 = [ "You", ] #part2 of the sentence--the verb/action part2 = [ "are", ] #part3 of the sentence--the ending(noun) part3 = [ "Extremely intuitive", "A searcher of hidden meanings", "Sensitive and perceptive", "Gifted at reading others", "A holder of strong convictions and beliefs", "A person who will not compromise their ideals", "Genuinely warm and affirming by nature", "Capable of trusting your own instincts (and with good reason)", "Usually right and you usually know it", "Typically gentle and caring", "Usually have good communication skills", "A gifted writer", "Committed and you take commitment seriously", "The reason why I admire you deeply", "A seeker of lifelong relationships", "A good listener", "Deep, complex and intense", "Artistic and creative", "A inspirator, a motivator, an achiever", "Extremely insightful about people and situations", "a Perfectionist", "Natural nurturer", "Devoted to and protective of those they care about", "The rarest of all types", "An independent worker", "In some ways, be easy-going", "Everything I want to be", "Very important to me", "Not a failure", "Special and idiosyncratic (heh, in a good way)", "Beautiful, not just outside, but deep inside as well", "The person I want to risk myself for because God risk Himself on me", "Perfection, even the sun is jealous of the way you shine", "So kind to others", "A believer that there is good in this world", "Constantly racing through my mind", "The next Victoria Secret Model", "Loved always", "Pretty, witty, and gracious", "Important", "Geniune and sincere", "One I went to spend my time with, even the future", "Hotter than donut grease", ] list_of_sentences = make_sentence(part1, part2, part3) print list_of_sentences
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