1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 06:47:54 +02:00

Merge pull request #2009 from fighterleslie/pr-math.sqrt

[python3/en] Correct math.sqrt(16)
This commit is contained in:
ven
2015-11-08 21:38:11 +01:00

View File

@@ -689,7 +689,7 @@ i.age # => raises an AttributeError
# You can import modules # You can import modules
import math import math
print(math.sqrt(16)) # => 4 print(math.sqrt(16)) # => 4.0
# You can get specific functions from a module # You can get specific functions from a module
from math import ceil, floor from math import ceil, floor