## IT 116: Introduction to Scripting Answers to Class 10 Ungraded Quiz

1. If you were calculating a running total, which would be stored in a variable named total, what value would you assign to this variable at the start of the program?
`0`
2. What is the augmented assignment operator that adds the value on it's right to the value of the variable on it's left and assigns that new value to the variable?
`+=`
3. What is the augmented assignment operator that subtracts the value on it's right from the value of the variable on it's left and assigns that new value to the variable?
`-=`
4. What is the augmented assignment operator that multiples the value on it's right by the value of the variable on it's left and assigns that new value to the variable?
`*=`
5. What is the augmented assignment operator that performs regular division on the value of the variable to its left by the value on its right and assigns that new value to the variable?
`/=`
6. What is the augmented assignment operator that performs integer division of the value of the variable on its left by the value on its right and assigns that new value to the variable?
`//=`
7. What is the augmented assignment operator that performs integer division of the value of the variable on its left by the value on its right and assigns the remainder of that operation to the variable?
`%=`
8. What is the augmented assignment operator that takes the value of the variable on its left, raises it to the power of the value on its right, and new value to the variable?
`**=`
9. What do we call the special value used to signal the end of input when entering values into a program?
`a sentinel`
10. Write a loop that checks the value of the variable named number to see that it is greater than 0, and, if it is not, prints an error message and asks for another integer.
```while number <= 0:
print("The value must be greater than 0")
number = int(input("Please enter a number greater than 0"))```