I wrote a code and the only problem I have is the assert function syntax. For the function great(s,b)
, b
has to be in range (2,37)
and s
has to be a string. At the same time I need to assert that s
contain only digits 0-9
, letters a-z
, and the .
(dot).
def great(s,b):
assert b in range(2,37) and type(s)==str