FREE INTERACTIVE ONLINE COURSE

Python 3

FOR BEGINNERS


"The first Python course that simply amazed me. Very well explained and easy to understand." (Alexandru Cosmin)

"The best Python course in Romania." (Iulian Geană)


ALL REVIEWS
LESSON 10
PAGE 3 / 5
Lists
Home >>> Free Online Lessons, Python 3

Modifying Elements

To modify the value of an element, we assign it new content:
Editor - lesson_10.py
       
Console/Output done
Just like that... Unlike strings, where individual characters cannot be modified, lists in Python are mutable, meaning you can change the value of an element directly by assigning it new content. This makes lists very flexible and useful for various applications.
Run the program, then proceed to the next page.
 home   list  CONTENTS   perm_identity   arrow_upward