Turn on thread page Beta

Python - best approach for a case numbers system? !A453 TASK 3! watch

    • Thread Starter

    !A453 TASK 3!

    What would be the best approach for a case number system? My teacher is useless and isn't helping me at all with anything, and after hours of researching online, I cannot find an efficient solution.

    Here's what I want:
    1. List to be stored in some sort of file (Could be json, txt or normal .py)
    2. List is appended and doesn't overwrite the contents
    3. Make sure that the "ID" system is in numerical order (Possibly use "-1" for indexing?)

    So how would this work? I've searched for this using .json but it doesn't really seem possible. I already have a list with a dictionary inside it of the user's phone, submodel and system memory. Now I want to put this in a file to be sent to a technician and make sure that the IDs go up in numerical order. What's the best approach, thank you.
Submit reply
Turn on thread page Beta
Updated: November 8, 2016
The home of Results and Clearing


people online now


students helped last year

University open days

  1. Keele University
    General Open Day Undergraduate
    Sun, 19 Aug '18
  2. University of Melbourne
    Open Day Undergraduate
    Sun, 19 Aug '18
  3. Sheffield Hallam University
    City Campus Undergraduate
    Tue, 21 Aug '18
A-level students - how do you feel about your results?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.