For-loop does not update integers in Python list

Publicado em: 05 Novembro 2023
no canal de: Coders Bring Change (Python for Everyone)
374
15

When list elements are changed while iterating a list, unexpected things can happen. In this video, you learn how to safely change the values of existing elements in a Python list.

C H A P T E R S
0:40 Updating the loop value does not update the element from the list
1:20 Integers in Python are immutable
1:50 In-place incrementation also creates a new object
2:30 Use subscription also known as indexing

M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Try free chapters of online courses: https://pythonforeveryone.com

#loopvariable #programming #python


Nesta página do site você pode assistir ao vídeo on-line For-loop does not update integers in Python list duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Coders Bring Change (Python for Everyone) 05 Novembro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 374 vezes e gostou 15 espectadores. Boa visualização!