|
|
|
|
|
by underwoodley
3143 days ago
|
|
I don't see these programs as fundamentally different. The only material different is that one uses a GOTO and the other uses a while loop. But I don't think either of these is more intuitive. When you learnt how a GOTO works, you probably learnt immediately afterwards how to use it to loop. This loop is a 'pattern', one which you would have to grok as a single idea before you could write a program like the above. This is similar to learning about a while loop, and then knowing you would need one when you wrote the Python script. |
|