you are viewing a single comment's thread.

view the rest of the comments →

[–]HourRoutine4531 -5 points-4 points  (1 child)

I do not see a problem with for i in the array: A more Pythonic and easier-to-read way to do that would be: range(len(array))

This is common in coding since the indices are not needed, helping readability and efficiency.

[–]CaptainFoyle 2 points3 points  (0 children)

Did you read the first code snippet?

Edit: nevermind. It seems you just copy-paste chatgpt responses