Tagged Questions
4
votes
1answer
339 views
Will loop constructs become obsolete? [closed]
By loop constructs I mean for… and while… constructs with nested statements.
Currently I am coding a tool in Python and decided out of curiosity not to use the regular loops - and rely on ...
0
votes
1answer
81 views
Code execution within delimiters
Is there any way I can execute a block of code in a loop, like so:
[ some code goes here ]
Where the delimiters are "[" and "]", and also allowing for nested blocks, i.e.:
[the user can create ...
4
votes
1answer
1k views
Loop Invariants in Python
I have a bit of experience with loop invariants but I'm not really clear on them. I'm trying to learn them through an example in Python. Can someone point one out or help me understand?
I've ...