Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python return multiple value from a function

def name():
    return "John","Armin"

# print the tuple with the returned values
print(name())

# get the individual items
name_1, name_2 = name()
print(name_1, name_2)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #return #multiple #function
ADD COMMENT
Topic
Name
4+2 =