Here's my code;
def save(name):
if x['fname'] == 'ply.json':
save1(name)
elif x['fname'] not 'ply.json':
write_data({'fname':'ply.json', 'name':'Karatepig'}, 'ply.json')
I get an error stating that I have this syntax error:
File "<stdin>", line 4
elif x['fname'] not 'ply.json':
^
What am I doing wrong?