I hereby claim:
- I am mohitranka on github.
- I am mohitranka (https://keybase.io/mohitranka) on keybase.
- I have a public key whose fingerprint is 1E01 880E 9A70 FE05 BFD2 30E3 C135 CBE1 8548 14E0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class ReversiableItertor: | |
""" | |
An iterator, having the previous function | |
""" | |
def __init__(self,data): | |
""" | |
""" | |
self.data = data | |
self.index=-1 |
#Author - Mohit Ranka | |
def rangify(input_list): | |
""" | |
Takes list of integers as input and returns a string as its range representation | |
""" | |
output_string = "" | |
hold = False | |
input_list = sorted(list(set(input_list))) | |
prev_val = input_list[0] |