0

I have this code

f= open('data\\party.txt', 'r')
my_party = f.read()
f.close
my_party = json.loads(my_party)

party.txt contains the following

[None, None, None, None, None]

I want this to be imported as the list it is. But it get turned into a string.

jonrsharpe
  • 107,083
  • 22
  • 201
  • 376

0 Answers0