Case number generator in python

I am a private investigator and am wanting to create a python code to generate sequential case numbers. I have a 13 digit format laid out I am just not sure how to write the code. I have googled it but all I find is generating integers.

Will be similiar to this xxx-ddmmyy-xxxx (first three case type-next six date of case - last four case number) any help would be appreciated.

So the first number is provided by you?
Second can you get via “from datetime import date” and “today = date.today()”.
The finaly number would can just be generated with a simple counter.

Though question is how you save the files, so Python could gather the names and identify which numbers are not yet in use.
Then it should just be string operations to get your desired format.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.