Here is the task I want to solve as a Python Beginner: You are given three integers x, y and z representing the dimensions of a cuboid along with an integer n. Print a list of all possible coordinates given by (i, j, k) on a 3D grid where the sum of i+j+k is not equal to n. Please use list comprehensions rather than multiple loops, as a learning exercise.
I also got help of chatGPT and GPT explain each and everything in the task, also provided code, but my concept for all possible coordinates is not clearing, my mind is not satisfied. Maybe reason is, I am beginner to it. If anyone want to explain it to me, I will be thankful to you, or share any resources dedicated to this topic
I know about list comprehension but main problem to possible coordinates and how these works.
There are already asked same question by someone on stackoverflow but everyone just writing code. I need explanation theoretically for possible coordinates
Wp Expert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.