Final answer:
To store a non-decimal number, use the int() function; thus, the correct code is candyCost = int(input("How much is the candy?")).
Step-by-step explanation:
To store a non-decimal value in a variable, you should use an integer (int) data type. Hence, the correct line of code to only allow a non-decimal point number to be stored in the variable candyCost would be:
candyCost = int(input("How much is the candy?"))
This line prompts the user for input with the question 'How much is the candy?' and converts the entered value to an integer using the int() function. Note that if the user inputs a decimal value (such as 2.50), an error will be raised, as int() expects a value that can be converted into an integer without a decimal component.