monkeys paw wrote:
I want to store data in a file like show below. Then
i want to import the data in, but am having trouble.
I'm trying:
import sfdata
for x in author_list:
print x
Either
import sfdata
for x in sfdata.author_list: # Access list as an attribute of
the module
I want to store data in a file like show below. Then
i want to import the data in, but am having trouble.
I'm trying:
import sfdata
for x in author_list:
print x
FILE: sfdata.py (i'm trying to import it)
==
author_list = {
'829337' : {