1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] python split function returns AttributeError: 'builtin_function_or_method' object has...

Discussão em 'Python' iniciado por Stack, Junho 23, 2025.

  1. Stack

    Stack Membro Participativo

    I have this code that's supposed to split a string that's in sections separated by a colon.

    return string.split(":")[stringnumber][:-1]


    it gives me the error "AttributeError: 'builtin_function_or_method' object has no attribute 'split'". what could I be doing wrong here?

    Continue reading...

Compartilhe esta Página