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?
lfmconsummates
0
Newbie Poster
Recommended Answers
Jump to Postsee random.choice
All 7 Replies
lfmconsummates
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
lfmconsummates
0
Newbie Poster
prerakmody
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
prerakmody
0
Newbie Poster
prerakmody
0
Newbie Poster
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.