Week 5: Python: Assignment: Exercise#1: Q1

Create a list of 10 ordered pairs (π‘₯,𝑦), π‘₯ πœ– [βˆ’6,6] such that they satisfy the equation π‘₯2+𝑦2=π‘Ÿ2 where π‘Ÿ=6 .

What does π‘₯ πœ– [βˆ’6,6] mean? and Does β€˜y’ need to be an integer or can it be a real number?

It means that x belongs to the interval whose range is from -6 to 6, both included. I think y can be of the type float.

You can first try to do it for integer values only. Later extend to check if you’re able to iterate float values or not.