Please use Python for this question.
Please make sure the code is formatted correctly in Python as well.
This is what is included in each party.txt file:
party1.txt:
2.35U 5D 3U 2
party2.txt:
18.3D 8.5U 0.0D 2.0D 6.0U 8.75D 5.5D 2.5D 0.75U 9.75D 9.0U 7.0D 5.5D 0.0U 3.75U 6.0U 1.25D 4.5D 2.75D 9.5U 6.5D 6.25D 2.0U 3.75D 1.75U 9.0U 1.0D 2.75D 3.75U 2.75U 5.75D 8.25D 2.75U 3.75D 0.25D 8.0D 2.0D 3.5D 0.0U 8.5U 1.0U 8.5U 1.0D 6.25U 5.0U 5.5D 3.25U 6.5U 7.25D 7.25D 0.0
party3.txt:
-3.5U 2.5U 9.75D 9.5D 5.0U 2.75U 4.5D 1.75D 8.25D 1.25D 2.25U 8.25U 2.5U 2.0U 0.25D 4.25U 2.5U 4.0U 3.0D 6.25U 9.75U 4.0U 3.75D 9.0U 8.75U 2.75D 8.5D 6.25D 1.0U 4.75D 5.5D 1.25D 9.5D 6.0D 5.5U 6.5D 7.0U 7.75D 1.25U 5.5D 2.75D 0.5U 5.0U 4.25D 5.25U 7.0U 4.5D 5.75D 0.0U 0.0D 4.5
This is the Output Answer for this question:
##### partyVolume #####
>>> partyVolume('party1.txt')Volume(6.35)>>> partyVolume('party2.txt')Volume(3.75)>>> partyVolume('party3.txt')Volume(0.75)
# make sure return not print
>>> partyVolume('party1.txt')==Volume(6.35) # return not printTrue>>> partyVolume('party2.txt')==Volume(3.75)True>>> partyVolume('party3.txt')==Volume(0.75)True
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here