2 lines
558 B
Python
2 lines
558 B
Python
globals().update({'meow': [1, 2]}) or (meow := globals()['meow']) and [((globals().update({'todo': []}) if "todo" not in globals() else True) or True) and ((todo := globals()['todo']) or True) and (todo := list(filter(lambda y: y != globals().get('todo', [])[x-1], globals()['todo'])) if (x := int(input("Type 0 if you want to add task or index if you want to mark done: "))) != 0 else globals().get('todo', []) + [input("Type task: ")]) and print("\n".join([str(i+1) + ". " + j for (i, j) in enumerate(globals()['todo'])])) or meow.append(1) for _ in meow]
|