Learn Python Lists

You are here: Home » Blog » Computer Programming Languages » Python » Learn Python Lists

Learn Python Lists

Accessing an index which does not exist generates an exception (an error).

mylist = [1,2,3]

The code above will generate the following error: IndexError: list index out of range on line 2 in main.py

Trinket.io on-line Python compiler

By |2019-02-08T19:21:24-04:00April 7th, 2018|Categories: Computer Programming Languages, Python|Tags: , |

About the Author:

I am a loving father, & husband. I am a computer enthusiast. I have used and enjoyed computers since I was young and I enjoy teaching young minds how to code, because it teaches them how to think. Today with YouTube, and social media garbage our youth are losing the ability to think on their own and solve problems. I believe this is a serious epidemic as kids today dont understand that technology is a tool. This tool is being abused, and its underlying effects are taking its toll on kids behaviour, and learning.