Skip to content
Permalink
Browse files
added text generator to make pasting easier
  • Loading branch information
masudm6 committed Oct 1, 2020
1 parent 530d185 commit 82ae966c77d129d8f2d54c52638a4300df306bb5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
@@ -1,11 +1,11 @@
'''
"""
sphinx story
is good
https://github.coventry.ac.uk/lycette2/CuriosityKilledTheSphinx
'''
"""

history = [] # empty storage area for choices

@@ -73,6 +73,7 @@ def getAnswer2(question, text): # function to handle 2 responses from the user

history.append(choice.upper()) # adds the choice the user picked


def getAnswer3(question, text): # function to handle 3 responses from the user
loop = True
choice = ""
@@ -130,6 +131,7 @@ def getAnswer4(question, text): # function to handle 4 responses from the user

history.append(choice.upper()) # adds the choice the user picked


# Main block
start()

@@ -0,0 +1,20 @@
optionsList = ["A", "B", "C", "D", "E", "F"]

options = input("How many options? (max = 6)->")
line = "text = {"

for i in range(1, int(options)+1):
if int(options) == 1:
textInput = input("Paste the text for option " + optionsList[i-1] + ":")
line = line + "\"" + optionsList[i-1] + "\": " + "\"" + textInput + "\"}"
elif i == 1:
textInput = input("Paste the text for option " + optionsList[i - 1] + ":")
line = line + "\"" + optionsList[i - 1] + "\": " + "\"" + textInput + "\",\n"
elif i < int(options):
textInput = input("Paste the text for option " + optionsList[i-1] + ":")
line = line + " \"" + optionsList[i-1] + "\": " + "\"" + textInput + "\",\n"
else:
textInput = input("Paste the text for option " + optionsList[i - 1] + ":")
line = line + " \"" + optionsList[i - 1] + "\": " + "\"" + textInput + "\"}"

print(line)

0 comments on commit 82ae966

Please sign in to comment.