Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = float (input(""))
- b = float (input(""))
- c = "{:.2f}".format(a)
- d = "{:.2f}".format(b)
- e = float(c)*3.5
- f = float(d)*7.5
- sum = float(e)+float(f)
- avg = sum/(3.5+7.5)
- formatted_float = "{:.5f}".format(avg)
- print("MEDIA =",formatted_float)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement