'''lecture04_operator_wrapup.py Oliver W. Layton CS151 Spring 2021 This file shows some wrapup stuff about Python operators ''' # print(2.0**3) # will be a float # print(2**3) # Doing power with ints # print(2.5**3) # lose information if drop the .5, so keep as floats # Converting data types print('int(2.5):', int(2.5)) print(3*int(2.5)) print('The number 3.0 as a string:', 4*str(3.0)) print('Using round function on 2.5:', round(2.75))