Answer to Question #270151 in Python for Peaches

Question #270151

Write input, display,

and calculation methods. Your final output should

display all calculated values, including the total

deductions and all defined constants.


1
Expert's answer
2021-11-23T05:19:08-0500
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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS