All pastes #451136 Raw Edit

Anonymous

public python v1 · immutable
·published 2007-04-21 08:32 UTC
rendered paste body
#!/usr/bin/env pythonglobal fontSizefontSize==('[size=1]','[size=2]','[size=3]','[size=4]','[size=5]','[size=6]','[size=7]','[/size]')global boldbold=['[b]','[/b]']global highlighthighlight=['[h]','[/h]']global colorscolors=['red','blue','green','yellow']global whatWordwhatWord=raw_input('''What words would you like to insert?''')global whichSizewhichSize=raw_input('''What size would you like the text to be? Pick a size 1 through 7''')global wantBoldwantBold=raw_input('''Would you like bold? Y/N ''')global wantHighlightwantHighlight=raw_input('''And any highlighting? Y/N''')def randomFontSize(maxText):    i=0    #uses randint(0,6) to find a slice of fontSize to determine a random font size for each word    while i<maxText:        l=randint(0,6)        fontSize[l]+whatWord+fontSize[7]        i=+1def fontPick():            passdef randomColor():    #uses a slice of list colors to find a random color to apply to a word    passdef randomBoldAndHighlight():    pass#wantColor=raw_input('''What colors would you like?''') I need to find what colors are availableif whichSize=='1':    #write a function that you can call to pick the font sizes    passelif whichSize=='2':    #function call\    passelif whichSize=='3':    #function call    passelif whichSize=='4':    #function call    passelif whichSize=='5':    #function call    passelif whichSize=='6':    #function call    passelif whichSize=='7':    #function call    passelse:    print 'Invalid Input'if wantBold=='y':    #bold function    passelif wantBold=='n':        #bold function    passelse:    print 'Invalid Input'if wantHighlight=='y':    #highlight function    passelif wantHighlight=='n':    #highlight function    passelse:    print 'Invalid Input'