I am trying to make this pattern in python but stuck, any help please?
Ashley
I am trying to make this pattern in python but stuck, any help please?
Ashley
Just do the black triangles on white background or vice versa.
Hint: if there is a vertex at a point (x0, y0)
, the other vertices are at points
x, y = (x0+ a * i + b * j, y0 + c * j)
where a, b, c
are 3 given numbers and i, j
are varying integers.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.