DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python return multiple value from a function using a dictionary
def name(): n1 = "John" n2 = "Armin" return {1:n1, 2:n2} names = name() print(names)
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#python
#return
#multiple
#function
#dictionary
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit