mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Merge pull request #2009 from fighterleslie/pr-math.sqrt
[python3/en] Correct math.sqrt(16)
This commit is contained in:
commit
a1ed02d6fa
@ -689,7 +689,7 @@ i.age # => raises an AttributeError
|
||||
|
||||
# You can import modules
|
||||
import math
|
||||
print(math.sqrt(16)) # => 4
|
||||
print(math.sqrt(16)) # => 4.0
|
||||
|
||||
# You can get specific functions from a module
|
||||
from math import ceil, floor
|
||||
|
Loading…
Reference in New Issue
Block a user