Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

accessing multiple elements from the list

# Python program to demonstrate
# accessing of element from list
 
# Creating a List with
# the use of multiple values
List = ["Softhunt", ".net", "Tutorials"]
 
# accessing a element from the
# list using index number
print("Accessing a element from the list")
print(List[0])
print(List[2])
 
# Creating a Multi-Dimensional List
# (By Nesting a list inside a List)
List = [['Tutorials', 'Hello'] , ['Softhunt']]
 
# accessing an element from the
# Multi-Dimensional List using
# index number
print("
Accessing a element from a Multi-Dimensional list")
print(List[0][1])
print(List[1][0])
Comment

PREVIOUS NEXT
Code Example
Python :: Python return statement (Write and Call Function) 
Python :: Example of Python Strings with indexing 
Python :: how to get class names in predict_proba 
Python :: how to decide that the input must be a integer less than 5 in python 
Python :: python faq call by reference 
Python :: load model pytorchand freeze 
Python :: view(-1 1) pytorch 
Python :: sys exit out of loop 
Python :: looking up object address in python 
Python :: Reactor/Proactor patterns 
Python :: how to add item to a list in pithon 
Python :: convert a float array to an integer 
Python :: list update python 
Python :: python run docker interactively subprocess 
Python :: Python NumPy rollaxis Function Example 02 
Python :: get minimum value function with anealing in python 
Python :: k means em algorithm program in python 
Python :: Python NumPy vstack Function Syntax 
Python :: verbose field names 
Python :: python json serialize print pretty 
Python :: split() without argument 
Python :: how to run string like normal code in python 
Python :: NumPy unpackbits Code Unpacked array along axis 0 
Python :: qlcdnumber set value 
Python :: penggunaan len di python 
Python :: how to swap a lowercase character to uppercase in python 
Python :: list x[:-1] 
Python :: how to Capture only the ICMP packet. using bpf 
Python :: cashier program with class python 
Python :: How deploy Flask application on Webfaction 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =