mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-09-02 11:14:15 +02:00
Type correction for the output of math.sqrt() propagated across versions and languages
This commit is contained in:
@@ -444,7 +444,7 @@ Human.grunt() #=> "*grunt*"
|
||||
|
||||
# On peut importer des modules
|
||||
import math
|
||||
print math.sqrt(16) #=> 4
|
||||
print math.sqrt(16) #=> 4.0
|
||||
|
||||
# Et récupérer des fonctions spécifiques d'un module
|
||||
from math import ceil, floor
|
||||
|
Reference in New Issue
Block a user