Really quick question, if I want to return the data that is returned by snesVar in videoGame as a string on every line, what is the correct code to use?
def videoGame():
count = 0
snesVar = []
for data in os.listdir('/SNES/SNES Roms'):
if data.endswith('.src') or data.endswith('.srm'):
snesVar.append(data)
return snesVar
def videoGame2():
gbaVar = []
count = 0
for data in os.listdir('GBA'):
if data.endswith('.gba') or data.endswith('.gb'):
gbaVar.append(data)
return gbaVar
def videoGame3():
ndsVar = []
count = 0
for data in os.listdir('NDS'):
if data.endswith('.nds') or data.endswith('.ds'):
ndsVar.append(data)
return ndsVar