Operators & Operands Exercises

  1. With your neighbor,
    1. Name each of the operators in the following code:
    2. Determine the output of the following code:
    numApples = 5
    numPeople = 2
    
    print("numApples:", numApples)
    print("numPeople:", numPeople)
    print("numApples / numPeople:",  numApples / numPeople)
    print("numApples // numPeople:", numApples // numPeople)
    print("numApples % numPeople:", numApples % numPeople)
    print("numApples ** numPeople:", numApples ** numPeople)
    print("numApples + 5 * numPeople:", numApples + 5 * numPeople)
    print("(numApples + 5) * numPeople:", (numApples + 5) * numPeople)