Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to change 0 based indexing to 1 based indexing in python..??
Post: RE: How to change 0 based indexing to 1 based inde...

(Jan-22-2020, 05:07 PM)jefsummers Wrote: For a function not in a class, remove the reference to self. General recommendation - wouldn't it be better to just remember that it is zero based? Using ge...
Ruthra General Coding Help 2 4,347 Jan-22-2020, 05:13 PM
    Thread: How to change 0 based indexing to 1 based indexing in python..??
Post: How to change 0 based indexing to 1 based indexing...

Python works in 0 based index. I have tried to change the python to work in 1 based index. python_file_A.py def __getitem__(self, index): return self.list[index-1] def __setitem__(self, index, valu...
Ruthra General Coding Help 2 4,347 Jan-22-2020, 04:12 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020