mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-31 18:32:22 +02:00
Type correction for the output of math.sqrt() propagated across versions and languages
This commit is contained in:
@@ -449,7 +449,7 @@ Om.exclama() #=> "*Aaaaaah*"
|
||||
|
||||
# Pentru a folosi un modul, trebuie importat
|
||||
import math
|
||||
print math.sqrt(16) #=> 4
|
||||
print math.sqrt(16) #=> 4.0
|
||||
|
||||
# Putem importa doar anumite funcţii dintr-un modul
|
||||
from math import ceil, floor
|
||||
|
Reference in New Issue
Block a user