Hey, I already asked this but I didn't have time to fix this issue then and my post got closed. So my issue is that I want two filled circles next to each other, but I'm a bit lost on how to do it. I got some help with the grid size, but I'm not sure if I did it right. Here's what I did so far:
import math
def balls(radius):
# empty grid
grid = [[' ' for y in range(radius * 2)] for x in range(radius * 4)]
for y in range(radius * 2):
for x in range(radius * 2):
centre = (x - radius) ** 2 + (y - radius) ** 2
if radius >= centre:
grid[y][x] = 'x'
print(grid)
radius = int(input("Choose your size: "))
balls(radius)`
I also attached the output
My mistake before was that I made the grid radius x radius
Thanks!!