Ad
  • Default User Avatar
  • Default User Avatar

    Run a=(b:=__import__('numpy').base_repr(8337503854730415241050377135811259267835, 36)).lower()+b;a in a python terminal

  • Custom User Avatar

    can you tell me what is this?

  • Default User Avatar

    You don't need this check here:

    if not arr:
      return 0
    
  • Default User Avatar
  • Custom User Avatar

    whats the comment spoiling tho? its not a solution

  • Custom User Avatar

    Use fork to post another solution instead of using discourse. Discourse comments can't be marked as spoilers in Kumites.

  • Custom User Avatar
    a = (callable((6,9)).__eq__(isinstance(420, float))).__doc__[69-3*10] # my fav
    b = bytes(1337).__str__()[0]
    c = __import__("this").s[69-2]
    d = [4,2,0].__repr__.__str__()[6]
    e = NotImplemented.__str__().__doc__[727-700-20]
    f = type(breakpoint).__repr__.__str__()[(__import__("functools").reduce(__import__("operator").__sub__, map(ord,["z","`"])))]
    g = None
    h = None
    i = __import__("typing").Awaitable.__doc__[727-700-20]
    j = None
    k = None
    l = bytes([1,3,3,7]).__eq__(bytes(727)).__str__()[2]
    m = __import__("re").__doc__[int(f"{2**2}{2**2}")]
    n = None.__repr__.__str__().lower()[3+3+3+3+3+3+3+3+3+3]
    o = open.__doc__[(727**69+420-1000-300-30-7+1337)**(694-20-600-70-4)-1].lower()
    p = print.__repr__.__str__()[int(f"{11**2}".replace("2",""))]
    q = None
    r = type(repr.__doc__[2**2]).__repr__.__str__()[727-700-20]
    s = isinstance("i ran out of ideas for funny numbers", complex).__str__()[len("so im doing this to make it look like im super smart")-7*7]
    t = (7).__eq__(21).__eq__(False).__eq__(True).__str__()[0].lower()
    u = __import__("__hello__").__str__()[4]
    v = None
    w = None
    x = bytes(help.__doc__,'u16').__repr__.__str__().lower()[40+7]
    y = exec.__doc__.__str__()[7+7+7+7+7+7+7+7+7+7+7]
    z = None
    

    i got lazy at some point

  • Custom User Avatar

    u can try this but using the zen of python for the characters

  • Default User Avatar
  • Custom User Avatar

    u are nuts 🔥🔥

  • Default User Avatar

    Updated d to be: ZeroDivisionError.__doc__[21] since it didn't work with codewars for some reason

  • Default User Avatar

    here we go:

    a = (monkey := type(1.0).__name__)[3]
    b = type(True).__name__[0]
    c = str(print.__module__.__class__)[1]
    d = __builtins__.__dict__['copyright']._Printer__data[44] # this one's my favorite
    e = type({None}).__name__[1]
    f = monkey[0]
    g = __builtins__.globals.__name__[0]
    h = str(__annotations__.__class_getitem__.__hash__)[22]
    i = type(1).__name__[0]
    j = str(complex(1, 2))[4]
    k = ().__class__.__subclasses__()[2].__name__[13]
    l = monkey[1]
    m = getattr(dict, "__doc__")[15] 
    n = type(1).__name__[1]
    o = monkey[2]
    p = (None,).__class__.__name__[2] 
    q = list(zip(enumerate((None,).__class__.__subclasses__().__class__.__dict__.keys())))[6][0][1][3] # wtf
    r = ().__class__.__bases__[0].__subclasses__()[40].__name__[-1]
    s = type("").__name__[0]
    t = type('', (), {}).__bases__[0].__name__[-1]
    u = (None,).__class__.__name__[1]
    v = property.__doc__[77] # this one was easier than i thought it'd be
    w = ().__class__.__bases__[0].__subclasses__()[47].__name__[-1] # memoryview
    x = list(zip(enumerate(type(().__class__.__subclasses__()).__dict__)))[28][0][1][1] # it happened again
    y=getattr(dict, "__doc__")[18] 
    z = list(zip(enumerate(str.__dict__)))[63][0][1][0]
    alpha=""
    for k in vars():
        if (__import__('re').search(r'^[a-z]$', k)):
            alpha += vars()[k]
    
  • Default User Avatar

    Got base_repr:

    # base_repr
    b = type(True).__name__[0]
    a = type(1.0).__name__[3]
    s = type("").__name__[0]
    e = type({None}).__name__[1]
    underscore = getattr(int, '__doc__')[157]
    r = ().__class__.__bases__[0].__subclasses__()[40].__name__[-1]
    # epr already defined
    print(b + 
          a +
          s + 
          e +
          underscore + 
          r + 
          e + 
          p +
          r
    )
    

    And I did t too for some reason:
    t = type('', (), {}).__bases__[0].__name__[-1]

  • Default User Avatar
    n = type(1).__name__[1]
    u = (None, None).__class__.__name__[1]
    m=getattr(dict, "__doc__")[15] 
    p = (None, None).__class__.__name__[2]
    y=getattr(dict, "__doc__")[18] 
    print(
        n +
        u +
        m +
        p +
        y
        )
    

    I'm doing this by hand but this should be possible

  • Loading more items...