List value assignment and index reference : List Indexing « List « Python

Home
Python
1.2D
2.Application
3.Buildin Function
4.Class
5.Data Structure
6.Data Type
7.Database
8.Development
9.Dictionary
10.Event
11.Exception
12.File
13.Function
14.GUI Pmw
15.GUI Tk
16.Language Basics
17.List
18.Math
19.Network
20.String
21.System
22.Thread
23.Tuple
24.Utility
25.XML
Python » List » List IndexingScreenshots 
List value assignment and index reference
List value assignment and index reference
 

L1 = [2,3,4]
L2 = L1
L1[024


print L2


           
         
  
Related examples in the same category
1.List offset: start at zero, negative and slicingList offset: start at zero, negative and slicing
2.Negative List IndicesNegative List Indices
3.Change individual elements of a listChange individual elements of a list
4.Reference index in a list in Python.Reference index in a list in Python.
5.Searching a list for an integer.
6.List: display one item through an indexList: display one item through an index
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.