• Plastefuchs84

    Ahhhh thanks :-))) it works

    posted in Pythonista read more
  • Plastefuchs84

    I Use pythonista on iPad Air 2019 and iPhone, and can‘t run the code. :–(

    posted in Pythonista read more
  • Plastefuchs84

    Hello I can’t create json file :(:(:(

    import json
    
    numbers = [2, 3, 5, 7, 11, 13]
    
    filename = 'numbers.json'
    
    with open(filename, 'w') as json_f:
        json.dump(numbers, json_f)
    

    And the same error line with open....

    import json, codecs
    
    numbers = [2, 3, 5, 7, 11, 13]
    
    filename = 'numbers.json'
    
    with open(filename, 'wb') as f:
        json.dump(numbers, codecs.getwriter('utf-8')(f), ensure_ascii=False)
    

    Error message:

    Traceback (most recent call last):
    File "/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Python examples/number_writer.py", line 7, in <module>
    with open(filename, 'w') as json_f:
    PermissionError: [Errno 1] Operation not permitted: 'numbers.json

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!