Draft

Divide a string with an integer

Description
Loading description...
Strings
  • Please sign in or sign up to leave a comment.
  • mauro-1 Avatar

    In python it's almost impossible to forbid something:

    int (s)
    type(0)(s)
    getattr(__builtins__, 'i' 'nt')(s)
    reduce(lambda n,d: n*10+ord(d)-48, s, 0)
    eval(s)
    ...
    
    str (n)
    f'{n}'
    repr(n)
    '%d' % n
    type('')(n)
    getattr(n, '__s' 'tr__')()
    '{0}'.format(n)
    ...
    

    P.S. there is a similar kata (obviously without python).