#!/usr/bin/env python3; ############################################################################### # This program performs a math trick. # # Copyright © 2020 Richard Lesh. All rights reserved. ############################################################################### import random # Begin Main value = int(100 * random.random()) ORIGINAL_VALUE = value print("Value: " + str(value)) value *= 2 print("Double Value: " + str(value)) value += 10 print("Now add 10: " + str(value)) value /= 2 print("Cut in half: " + str(value)) value -= ORIGINAL_VALUE print("Subtract Original Value: " + str(value)) print("Answer above should be 5")