def parse_input(input_string):
    if input_string.strip() in {"1", "2", "3","4", "5", "6"}:
        return int(input_string)
    else:
        print("Please enter a number from 1 to 6.")
        raise SystemExit(1)

import random

def roll_dice(num_dice):
    roll_results = []
    for _ in range(num_dice):
        roll = random.randint(1, 6)
        roll_results.append(roll)
    return roll_results


num_dice_input = input("How many dice do you want to roll? [1-6] ")
num_dice = parse_input(num_dice_input)
roll_results = roll_dice(num_dice)

print(roll_results) # remove this line after testing the app
[5, 3, 5]
questions = \
{
    "1. Simulations will always have the same result": {
        "A": "True",
        "B": "False"
        
    },
    "2. A simulation has results that are more accurate than an experiment": {
        "A": "True",
        "B": "False"
       
    },
    "3. A simulation can model real world events that are not practical for experiments": {
        "A": "True",
        "B": "False"
   
    },
    "4. Which one of these is FALSE regarding simulations": {
        "A": "Reduces Costs",
        "B": "Is safer than real life experiments",
        "C": "More Efficient",
        "D": "More accurate than real life experiments"
    },
    "5. Which of the following scenarios would be the LEAST beneficial to have as a simulation": {
        "A": "A retail company wants to identify the item which sold the most on their website",
        "B": "A restaurant wants to determine if the use of robots will increase efficiency",
        "C": "An insurance company wants to study the impact of rain on car accidents",
        "D": "A sports car company wants to study design changes to their new bike design "
    },
        "6. Which of the following is better to do as a simulation than as a calculation": {
        "A": "Keeping score at a basketball game",
        "B": "Keeping track of how many games a person has won",
        "C": "Determining the average grade for a group of tests",
        "D": "Studying the impact of carbon emissions on the environment"
}
}

print("\nSimulations Quiz")
prompt = ">>> "
correct_options = ['D', 'C', 'D', 'B', 'A']
score_count = 0

for correct_option, (question, options) in zip(correct_options, questions.items()):
    print("\n", question, "\n")
    for option, answer in options.items():
        print(option, ":", answer)
    choice = str(input(prompt))
    if choice.upper() == correct_option:
        score_count = score_count + 1
print("Your score is:")
print(score_count)
Simulations Quiz

 1. Simulations will always have the same result 

A : True
B : False

 2. A simulation has results that are more accurate than an experiment 

A : True
B : False

 3. A simulation can model real world events that are not practical for experiments 

A : True
B : False

 4. Which one of these is FALSE regarding simulations 

A : Reduces Costs
B : Is safer than real life experiments
C : More Efficient
D : More accurate than real life experiments

 5. Which of the following scenarios would be the LEAST beneficial to have as a simulation 

A : A retail company wants to identify the item which sold the most on their website
B : A restaurant wants to determine if the use of robots will increase efficiency
C : An insurance company wants to study the impact of rain on car accidents
D : A sports car company wants to study design changes to their new bike design 
Your score is:
0