(Feb-01-2018, 06:41 PM)xin2408 Wrote: Ah, is it due to that after 5 times of iteration, the number will become 0 and it means False in the bool so the iteration stops? Does that mean right?yes, that is correct. when number becomes 0 it is evaluated as False and it will exit the while loop. That is also correct for empty list, empty dict, empty str, etc.
What's the meaning of this coding?
Messages In This Thread |
What's the meaning of this coding? - by xin2408 - Feb-01-2018, 06:03 PM
RE: What's the meaning of this coding? - by Larz60+ - Feb-01-2018, 06:16 PM
RE: What's the meaning of this coding? - by xin2408 - Feb-01-2018, 06:41 PM
RE: What's the meaning of this coding? - by buran - Feb-01-2018, 06:58 PM
RE: What's the meaning of this coding? - by Kebap - Feb-02-2018, 01:07 PM
RE: What's the meaning of this coding? - by DeaD_EyE - Feb-02-2018, 02:16 PM
RE: What's the meaning of this coding? - by xin2408 - Feb-02-2018, 08:19 PM
RE: What's the meaning of this coding? - by Kebap - Feb-08-2018, 10:16 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Syntax meaning | SUHIN | 1 | 2,054 |
Sep-22-2018, 08:08 AM Last Post: Gribouillis |
Users browsing this thread: 1 Guest(s)