You can simplify that code considerably, and also correct the saving of numbers as strings:
names_or_headings = []
i = 1
while i < 2:
number_of_surveys = int(input("number of surveys to be done up to 10: "))
if number_of_surveys == 0 or number_of_surveys > 10:
print("i don't understand that, please try again")
else:
i = 2
for x in range(number_of_surveys):
name_or_headings_input = input("Enter the names/headings of the different survey attempts 1 at a time in the desired order: ")
names_or_headings.append(name_or_headings_input)
unnanswered = True
print(colour.BOLD + colour.GREEN + "part#2- question creation" + colour.END)
questions = []
while unnanswered == True:
Number_of_questions = int(input("input a number up to 10 for the questions to be in survey: "))
if Number_of_questions == 0 or Number_of_questions > 10:
print("I don't understand that, please try again.")
else:
for x in range(Number_of_questions):
questions_input = input("Enter your questions one by one in order: ")
questions.append(questions_input)
unnanswered = False
print(colour.BOLD + colour.GREEN + "part#3 - starting" + colour.END)
print("make sure the people who are taking the survey/quiz are taking it in the order you gave.")
start = input("type start when you are ready: ")
for each_survey in range(number_of_surveys):
for each_question in questions:
answering = input(item)
Apart from the fact that
item
is not defined (you probably meant to use
each_question
), the answer is not saved anywhere.