if 2<x<10:
X never be more than 2. Because at the beginning you give 0 to X. And you say;
"while x<2:"
When x is bigger than 2 or equal, it quits from while loop.
solved so simple ask about while loop
if 2<x<10:
X never be more than 2. Because at the beginning you give 0 to X. And you say;
"while x<2:"
When x is bigger than 2 or equal, it quits from while loop.
solved so simple ask about while loop