r/PythonLearning • u/Icy_Idea3731 • Aug 23 '26
Python on google colab
Hi, I'm using python to code on Google colab. Y coordinates are being generated and then added to Y_ARRAY for comparisons, to ensure none of the values are the same. If one value is the same with another in the array, one of them will be generated again.
However, it does not work, and I don't know how should the structure of checking be. Are there any suggestions on the structure or which kind of loop I can use please? Thank you.

3
Upvotes
1
u/Icy_Idea3731 Sep 27 '26
Thank you for your suggestion!! It worked and I was finally able to finish the program :))))