In [32]:
import time
In [33]:
time.gmtime()
Out[33]:
In [1]:
import my_lib
In [3]:
my_lib.sum_it(16,13)
Out[3]:
In [4]:
my_f = 3.4234234
In [5]:
my_f.is_integer?
In [3]:
type(my_f)
Out[3]:
In [4]:
print(my_f)
In [5]:
import decimal
In [9]:
temp = decimal.Decimal(str(my_f) + '0' * 2)
In [10]:
temp
Out[10]:
In [13]:
print("%.3f" % my_f)
In [14]:
print("%.3f" % 306)
In [15]:
round(306.5423524, 2)
Out[15]:
In [17]:
round(306, -2)
Out[17]:
In [19]:
r=304.4
In [27]:
In [28]:
countdown_from_y_to_x(10,5)
In [29]:
boole = True
In [30]:
boole
Out[30]:
In [31]:
if boole:
print(2)
In [ ]:
import my_lib
In [ ]:
my_lib.sum_it?