Write input, display,
and calculation methods. Your final output should
display all calculated values, including the total
deductions and all defined constants.
a = 0b1010 #Binary Literals
b = 100 #Decimal Literal
c = 0o310 #Octal Literal
d = 0x12c #Hexadecimal Literal
#Float Literal
float_1 = 10.5
float_2 = 1.5e2
print(a, b, c, d)
print(float_1, float_2)
print(x, x.imag, x.real)
import constant
#constant literals
print(constant.PI)
print(constant.GRAVITY)
Comments
Leave a comment