Apr-22-2019, 06:37 AM
(This post was last modified: Apr-22-2019, 06:38 AM by Pedroski55.)
This is how I did it!
choices = ['checkboxes', 'dropdownboxes', 'htmltable', 'radiobuttons', 'textboxes', 'makethankyouphp'] pathToFile = '/home/pedro/myHWpageSummer2019/18BE/html/' pathToParagraph = '/home/pedro/myHWpageSummer2019/textTohtml/paragraph/paragraph' file = '18BEblanko.html' while True: print('This is to make the paragraph string, this weeks content html.') carryon = input('Enter y to continue, enter nothing to stop. ') if not carryon == 'y': break print('What do you want first? The choices are: ') for choice in choices: print(choice) myChoice = input('What do you want? Enter your choice. ') while myChoice not in choices: for choice in choices: print(choice) myChoice = input('What do you want? Enter your choice. ') if myChoice == 'checkboxes': myString = makeHTMLCBs() elif myChoice == 'dropdownboxes': myString = makeDropdownboxes() elif myChoice == 'htmltable': myString = makeHTMLtable() elif myChoice == 'radiobuttons': myString = makeHTML_RBs() elif myChoice == 'textboxes': myString = readLinesmakeTBs() elif myChoice == 'makethankyouphp': myString = makeThankyouPHP()Works ok, I get what I need.