How to Modify Lists Using Phyton
![Screen Shot 2022-10-11 at 2.52.34 PM.png](/proxy/?url=https://content.instructables.com/FGW/WWA3/L9CSFDVN/FGWWWA3L9CSFDVN.png&filename=Screen Shot 2022-10-11 at 2.52.34 PM.png)
This instruction set is for beginners using Phyton. There are 5 basic modifications to a list using phyton, but this instruction set only includes how to make and name a list, add items, index, update and remove items in the list. To learn more about other modifications, look up more modifications to a list!
Supplies
Materials: Phyton IDLE application
Open Phyton IDLE Shell
![Screen Shot 2022-10-18 at 12.04.52 AM.png](/proxy/?url=https://content.instructables.com/FVJ/AAD1/L9CSFD7F/FVJAAD1L9CSFD7F.png&filename=Screen Shot 2022-10-18 at 12.04.52 AM.png)
Open the application
Name a List by Typing a Name for a Category of Your Own Choice
![Screen Shot 2022-10-18 at 12.05.26 AM.png](/proxy/?url=https://content.instructables.com/FY1/BM49/L9CSFD7T/FY1BM49L9CSFD7T.png&filename=Screen Shot 2022-10-18 at 12.05.26 AM.png)
Note: In the example above, the chosen category is colors
Add an Equal Sign Next to It
![Screen Shot 2022-10-18 at 12.06.09 AM.png](/proxy/?url=https://content.instructables.com/FCI/INSA/L9CSFD8H/FCIINSAL9CSFD8H.png&filename=Screen Shot 2022-10-18 at 12.06.09 AM.png)
Next to the Equal Sign, Add Items to a List by Typing ‘[‘ + the Items You Want in the List Divided by ‘,’ and Close It With ‘]’ , Hit Enter
![Screen Shot 2022-10-18 at 12.06.49 AM.png](/proxy/?url=https://content.instructables.com/FDR/DXTQ/L9CSFD9E/FDRDXTQL9CSFD9E.png&filename=Screen Shot 2022-10-18 at 12.06.49 AM.png)
Note: In the example above, the items in the list above are strings (words) which is why it needs a quotation mark but if it is numbers, it does not need any.
Test Run the Code Using Print + Parenthesis With the Name of Your List and Hit Enter. This Is to Make Sure Your List Works Before Moving Forward!
![Screen Shot 2022-10-18 at 12.07.28 AM.png](/proxy/?url=https://content.instructables.com/FF2/LGHY/L9CSFDA6/FF2LGHYL9CSFDA6.png&filename=Screen Shot 2022-10-18 at 12.07.28 AM.png)
Access Values in the List by Typing Print + (name of List[number of Value You Want to Access])
![Screen Shot 2022-10-18 at 12.08.05 AM.png](/proxy/?url=https://content.instructables.com/F42/TH67/L9CSFDB5/F42TH67L9CSFDB5.png&filename=Screen Shot 2022-10-18 at 12.08.05 AM.png)
Hit Enter
![Screen Shot 2022-10-18 at 12.08.29 AM.png](/proxy/?url=https://content.instructables.com/FP4/N93M/L9CSFDC9/FP4N93ML9CSFDC9.png&filename=Screen Shot 2022-10-18 at 12.08.29 AM.png)
Type the Name of List+[number of Value You Want to Access] + Equal Sign
![Screen Shot 2022-10-18 at 12.09.07 AM.png](/proxy/?url=https://content.instructables.com/FK7/SL7Y/L9CSFDDJ/FK7SL7YL9CSFDDJ.png&filename=Screen Shot 2022-10-18 at 12.09.07 AM.png)
Type a Word You Want to Replace the Item You Indexed With in Quotation Marks to Update an Item
![Screen Shot 2022-10-18 at 12.09.35 AM.png](/proxy/?url=https://content.instructables.com/FPJ/43MK/L9CSFDEZ/FPJ43MKL9CSFDEZ.png&filename=Screen Shot 2022-10-18 at 12.09.35 AM.png)
Hit Enter
Type Print+name of List to See the Updated List
![Screen Shot 2022-10-18 at 12.10.48 AM.png](/proxy/?url=https://content.instructables.com/FZN/NCDZ/L9CSFDJA/FZNNCDZL9CSFDJA.png&filename=Screen Shot 2022-10-18 at 12.10.48 AM.png)
Type Name of List + Period + Remove
![Screen Shot 2022-10-18 at 12.11.12 AM.png](/proxy/?url=https://content.instructables.com/FD9/21SD/L9CSFDLB/FD921SDL9CSFDLB.png&filename=Screen Shot 2022-10-18 at 12.11.12 AM.png)
Type the Word You Want to Remove That Is in the List in Quotation Marks Next to the Word Remove to Remove an Item
![Screen Shot 2022-10-18 at 12.11.40 AM.png](/proxy/?url=https://content.instructables.com/FK6/281S/L9CSFDNF/FK6281SL9CSFDNF.png&filename=Screen Shot 2022-10-18 at 12.11.40 AM.png)
Hit Enter
Check Updated Modified List by Typing Print+name of List Inside a Parenthesis
Hit Enter
![Screen Shot 2022-10-18 at 12.12.25 AM.png](/proxy/?url=https://content.instructables.com/F4B/BJ4X/L9CSFDT5/F4BBJ4XL9CSFDT5.png&filename=Screen Shot 2022-10-18 at 12.12.25 AM.png)