(Nov-22-2023, 08:09 AM)buran Wrote: well, if you have known, finite number of elements, you better use for loop (note, you don't validate the input, i.e. it is not take input until 5 valid inputs)
Yes, I know a
for:
loop would be better. I was just tying to introduce one concept at a time, rather than add the range()
function into the mix at this stage. Also I know that any input should be validated, but again, for the same reason, I did not introduce that at this stage.
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein