import random names = ["John","Peter","Bob"] op1 = "I hope you are well." op2 = "Hope this mail finds you well." opening = [op1,op2] end1 = "Please kindly enlighten me with your insights." end2 = "Please kindly let me know what I can do." ending = [end1,end2] qualifier = ["reasonably","relatively","surprisingly","to a certain extent"] posAdj = ["acceptable","correct","unbiased","kind"] topic = ["problem","issue","misunderstanding"] print "Dear "+random.choice(names)+",","\n" print random.choice(opening) print "I am writing in response to the "+random.choice(topic)+"." print "Your view is",random.choice(qualifier),random.choice(posAdj),"in my humble opinion." print random.choice(ending) print "\n","Warmest regards," print "Charles" # References # https://www.inc.com/minda-zetlin/18-passive-aggressive-email-phrases-heres-what-they-really-mean.html # http://www.dailymail.co.uk/femail/article-4834246/People-share-passive-aggressive-phrases-use-work.html # Include HSMC's "Grateful if you would reply 'on or before' February 30." ??
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