In [57]:
abs(3)
Out[57]:
In [19]:
#def all(iterable):
# for element in iterable:
# if not element:
# return False
# return True
x = [1,2,0]
print(all(x))
y = [1,2,3,4]
print(all(y))
In [20]:
#def any(iterable):
# for element in iterable:
# if element:
# return True
# return False
print(any([0]))
print(any([1,2,3]))
print(any(['']))
print(any([' '])) #Rememebr: space is not equivilant to empty string
In [35]:
print(bin(7))
type(bin(7))
Out[35]:
In [49]:
int(3.4)
int('3')
int("10", 10)
Out[49]:
In [53]:
ord('W')
Out[53]:
In [56]:
pow(3,4)
pow()
Out[56]:
In [ ]: