Answers for "python return multiple variables from function"

0

python return multiple variables from function

a, b = test()

print(a)
# abc

print(b)
# 100
Posted by: Guest on October-04-2021
0

python return multiple variables from function

def test_list():
    return ['abc', 100]

result = test_list()

print(result)
print(type(result))
# ['abc', 100]
# <class 'list'>
Posted by: Guest on October-04-2021
0

python return multiple variables from function

a, b = test()

print(a)
# abc

print(b)
# 100
Posted by: Guest on October-04-2021
0

python return multiple variables from function

def test_list():
    return ['abc', 100]

result = test_list()

print(result)
print(type(result))
# ['abc', 100]
# <class 'list'>
Posted by: Guest on October-04-2021

Code answers related to "python return multiple variables from function"

Python Answers by Framework

Browse Popular Code Answers by Language