Return a variable by name from a function – stackoverflow.com

Im trying the return a given list with a function. def get_ext(file_type): text = ['txt', 'doc'] audio = ['mp3', 'wav'] video = ['mp4', 'mkv'] return ????? get_ext('audio') #should ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Return a variable by name from a function – stackoverflow.com"