summaryrefslogtreecommitdiffhomepage
path: root/pt-br
diff options
context:
space:
mode:
authorAndre Polykanine <ap@oire.me>2019-02-09 01:41:44 +0200
committerGitHub <noreply@github.com>2019-02-09 01:41:44 +0200
commit895a0ed413470ca2ce4d1cb67707c08021adfdde (patch)
tree3856be031cd5e52730a6b80cba0d5a80fafd60c3 /pt-br
parent4eb2baaf0cfcc4f4b6d60e63fb66c690ed3be56d (diff)
parent9b5b5f6d31b64be55e64c5f45084e45115f2f350 (diff)
Merge pull request #3458 from sanindya-iiitd/patch-1
[python/all] Type correction for the output of math.sqrt()
Diffstat (limited to 'pt-br')
-rw-r--r--pt-br/python-pt.html.markdown2
-rw-r--r--pt-br/python3-pt.html.markdown2
2 files changed, 2 insertions, 2 deletions
diff --git a/pt-br/python-pt.html.markdown b/pt-br/python-pt.html.markdown
index 5afd46d0..82b70117 100644
--- a/pt-br/python-pt.html.markdown
+++ b/pt-br/python-pt.html.markdown
@@ -464,7 +464,7 @@ Humano.ronca() #=> "*arrrrrrr*"
# Você pode importar módulos
import math
-print math.sqrt(16) #=> 4
+print math.sqrt(16) #=> 4.0
# Você pode importar funções específicas de um módulo
from math import ceil, floor
diff --git a/pt-br/python3-pt.html.markdown b/pt-br/python3-pt.html.markdown
index ea0617f4..b72c732a 100644
--- a/pt-br/python3-pt.html.markdown
+++ b/pt-br/python3-pt.html.markdown
@@ -647,7 +647,7 @@ Human.grunt() # => "*grunt*"
# Você pode importar módulos
import math
-print(math.sqrt(16)) # => 4
+print(math.sqrt(16)) # => 4.0
# Você pode importar apenas funções específicas de um módulo
from math import ceil, floor