I mean, Python is awesome in every1 single aspect (I'm a huge fan). For instance, have you ever tried to override the "import" instruction in Java with your own implementation? Although maybe not always recommended, it's a piece of cake in Python. Delegates... piece of cake in Python (callables) because literally everything is kind of an object. Damn, even types are. How awesome's that?
first_loop_done, second_loop_done = False, False
while (...) and (not first_loop_done):
...
for (...):
if second_loop_done:
break
...
for (...):
if (...):
first_loop_done, second_loop_done = True, True
break
...
-2
u/[deleted] Jan 05 '18 edited Jan 05 '18
... but why?
I mean, Python is awesome in every1 single aspect (I'm a huge fan). For instance, have you ever tried to override the "import" instruction in Java with your own implementation? Although maybe not always recommended, it's a piece of cake in Python. Delegates... piece of cake in Python (
callables) because literally everything is kind of an object. Damn, even types are. How awesome's that?/e: (1 - relevant for my requirements)