I have python3 function like:
def previous_current(iterable): it = iter(iterable) prv = None cur = it.__next__() try: while True: