+ Solução
+
+ """Randomize a "Run to the hills" phrase."""
+
+from __future__ import print_function
+
+import random
+from argparse import ArgumentParser
+
+
+CONSONANTS = ['f', 'j', 'c', 'l', 'n']
+PASSPHRASE = '{}u{}am para as {}o{}i{}as'
+
+
+def print_phrase(consonants):
+ """Print the phrase with the randomized consonants."""
+ print(PASSPHRASE.format(*consonants).capitalize())
+
+
+def totally_random():
+ """Run a totally random way."""
+ random.shuffle(CONSONANTS)
+ print_phrase(CONSONANTS)
+
+
+def switch_two():
+ """Run by changing two steps at a time."""
+ first = random.randint(0, 1)
+ second = random.randint(2, 4)
+
+ CONSONANTS[second], CONSONANTS[first] = \
+ CONSONANTS[first], CONSONANTS[second]
+ print_phrase(CONSONANTS)
+
+
+if __name__ == "__main__":
+ args = ArgumentParser()
+ args.add_argument('-t', '--totally',
+ dest='totally',
+ default=False,
+ action='store_true',
+ help='Like, toootaly random')
+ args.add_argument('-s', '--short',
+ dest='short',
+ default=False,
+ action='store_true',
+ help='Not so random')
+ result = args.parse_args()
+
+ if result.totally:
+ totally_random()
+ elif result.short:
+ switch_two()
+ else:
+ print('Dude, option!')
+
+