In [32]:
import time

In [33]:
time.gmtime()


Out[33]:
time.struct_time(tm_year=2017, tm_mon=3, tm_mday=10, tm_hour=16, tm_min=30, tm_sec=55, tm_wday=4, tm_yday=69, tm_isdst=0)

In [1]:
import my_lib

In [3]:
my_lib.sum_it(16,13)


Out[3]:
(58, 'summation successful!')

In [4]:
my_f = 3.4234234

In [5]:
my_f.is_integer?

In [3]:
type(my_f)


Out[3]:
float

In [4]:
print(my_f)


3.4234234

In [5]:
import decimal

In [9]:
temp = decimal.Decimal(str(my_f) + '0' * 2)

In [10]:
temp


Out[10]:
Decimal('3.423423400')

In [13]:
print("%.3f" % my_f)


3.423

In [14]:
print("%.3f" % 306)


306.000

In [15]:
round(306.5423524, 2)


Out[15]:
306.54

In [17]:
round(306, -2)


Out[17]:
300

In [19]:
r=304.4

In [27]:


In [28]:
countdown_from_y_to_x(10,5)


ON NO
10
ON NO
9
ON NO
8
BINGO
7
ON NO
6
ON NO
5

In [29]:
boole = True

In [30]:
boole


Out[30]:
True

In [31]:
if boole:
    print(2)


2

In [ ]:
import my_lib

In [ ]:
my_lib.sum_it?