Hi, I have been ask to do this:
Write a function wallOfEyes that takes three parameters (radius,
width and height) and displays, in a window of exactly the right size,
a “wall” of brown eyes of the given radius and dimensions. E.g., the
function call wallOfEyes(50, 4, 2) should give a 400 × 200
graphics window

This is my code so far:

def wallOfEyes(radius, width, height):
    radius =
    win = GraphWin("Wall Of Eyes", width, height)
    width = win.width
    height = win.height

I'm not sure how you change the size of the graphics window according to the dimensions given by the user. I'm also a bit stuck with radius.

Thanks :)

Recommended Answers

All 3 Replies

Example call of function seems to have width value 4 and height 2, you should know a way to change them to 400 and 200

Remember to ask in the Tutor Centre (Lion Gate building) if no help comes from online.
Remember also that merely copying someone elses work is plagiarism - but understanding and learning is ok.

home works home works

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.