mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-13 18:24:39 +02:00
Correct math.sqrt(16)
math.sqrt(16) returns 4.0 instead of 4
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user