Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

not want to assign all values of a collection of values in python

person = ("Bob", 42, "Mechanic")
name, _, profession = person

print(name, profession)  
# Bob Mechanic
 
PREVIOUS NEXT
Tagged: #assign #values #collection #values #python
ADD COMMENT
Topic
Name
8+6 =