1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Something about this python Pop method [closed]

Discussão em 'Python' iniciado por Stack, Outubro 3, 2024 às 08:52.

  1. Stack

    Stack Membro Participativo

    list = [1,2,3,4,5,6]
    list.pop(0)
    1
    list.pop(list[0])
    4


    when you directly choose the first element it gives the right answer. But when you make it a little complicated it startes to get confused.

    why does this happen? i just started learning python and i would be greatful if you guys answered my question.

    Continue reading...

Compartilhe esta Página