Start New Discussion within our Software Development Community

I'm trying to have HTML generate random background colors using Python. What I have so far is:
print "<body bgcolor='%s'>" % choice
what python code should follow?

I was also thinking of using a list of colors, like this:
bgcolor = ["red","blue","silver","green","yellow"]
but again, i'm unsure of how to use the random function with this list

Hi!I was wondering if I could know how to implement HTML along with python,
Do i simply use IDLE and enter (html+python)
OR do I have to call library packagesetc??
Thank You

Yes,I mean templating systems.
So how could I use IDLE to start typing HTML code like this
for item in items:
<td><%= %></td>

This question has already been answered. Start a new discussion instead.