first of all, read this https://python-forum.io/Thread-Basic-Nev...n-sequence
it also apply to your use of while loop
there are at least three ways to do it
it also apply to your use of while loop
there are at least three ways to do it
- use a list, so that you can append numbers, then convert it to tuple
- use tuple comprehension
- use slicing to create/return copy of the tuple with desired numbers in it
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs