Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to print a specific value in a list python

list = ["Chicken", "Pizza", "Pasta"]

print("We're having", list[1], "for lunch")

Output: Pizza. 
 
PREVIOUS NEXT
Tagged: #print #specific #list #python
ADD COMMENT
Topic
Name
9+7 =