Feb-02-2021, 07:27 PM
(Feb-02-2021, 06:58 PM)jmabrito Wrote: [ -> ]There's a problem. Even if this number does exist, it continues to a voice that announces that number. pyttsx3Really don't understand what you are saying. Where pyttsx3 come into play? Here you just add some random numbers to a file. Both my code snippets will continue the loop if the number exists. Now, your loop is meant to draw 15 numbers. I assume some of these numbers may repeat/present in the file. So, the code is not guaranteed to add 15 numbers if that is what you want.
Thank you instruct me that, if "exists" you should go to the FOR, looking for another number. Thank you
Really, show your actual code that has a "problem". I understand you may not speak english well, but try to use google translate so that it becomes more clear what you need and what the actual problem is.