Oct-07-2016, 04:54 AM
i just saw this tutorial. i have had a couple cases where i needed the index in the loop, or the index of where i broke out of the loop.
i also made macros to step through lists and dictionaries directly and made extensive use of them. but that was back in my assembler days. i also made functions like that in C and used those a lot. my AVL code in C has like functions (to step forward or backwards in a tree/mapping/dictionary).
one thing i like in python is that one can do things either way. but i have not, yet, run into a need to use goto in python. where would i go, anyway? the only use of goto i every made in C was to go to error handlers/cleanups at the end of function. python has exception handling, instead.
i also made macros to step through lists and dictionaries directly and made extensive use of them. but that was back in my assembler days. i also made functions like that in C and used those a lot. my AVL code in C has like functions (to step forward or backwards in a tree/mapping/dictionary).
one thing i like in python is that one can do things either way. but i have not, yet, run into a need to use goto in python. where would i go, anyway? the only use of goto i every made in C was to go to error handlers/cleanups at the end of function. python has exception handling, instead.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.