New course! Every coder should learn Generative AI!
Try a free lesson+ 9
You can use matplotlib 🙌
But for that you will require x-coordinates and y-coordinates of all the points that will be i and j respectively!
+ 8
This plots the points
https://code.sololearn.com/crmeI2OXX8Ek/?ref=app
+ 4
♤♢☞ 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ☜♢♤ If the origin lies on [10,10]
So, for a point [x,y] => in your code x = j and y = i
If x > 10 and y < 10: VI Quadrant
If x < 10 and y > 10: III Quadrant
If x < 10 and y < 10: II Quadrant
If x > 10 and y < 10: I Quadrant
+ 4
Modified the code ,works fine now
+ 4
♤♢☞ 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ☜♢♤ Use numpy for that!
This might help you ig 🤔
https://code.sololearn.com/cc9zfhoR8Lin/?ref=app
- 3
P po