From 68a6a709b59c262d1095818e82709f665be307a7 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Thu, 21 Sep 2017 10:42:45 -0300 Subject: [PATCH] more python --- fugindo-com-python-2.html | 138 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/fugindo-com-python-2.html b/fugindo-com-python-2.html index 5a39e98..b9e847b 100644 --- a/fugindo-com-python-2.html +++ b/fugindo-com-python-2.html @@ -273,6 +273,144 @@ from argparse import ArgumentParser CONSONANTS = ['f', 'j', 'c', 'l', 'n'] PASSPHRASE = '{}u{}am para as {}o{}i{}as' + + + + + +
+
+

Funções

+ +

+def print_phrase(consonants):
+    """Print the phrase with the randomized consonants."""
+						
+ + +
+ +
+

Funções

+ +

+def print_phrase(consonants, something_else):
+						
+ + +
+ +
+

Funcões

+ +

+def soma(primeiro, segundo):
+    total = primeiro + segundo
+	return total
+						
+ + +
+ +
+

Funções

+ +

+soma(1, 2)
+						
+ + +
+ +
+

Funções

+ +

+soma(primeiro=2, segundo=3)
+						
+ + +
+ +
+

Funções

+ +

+soma(segundo=3, primeiro=2)
+						
+ + +
+
+ +
+
+

Welcome to Hell

+ +

+    print(PASSPHRASE.format(*consonants).capitalize())
+