Skip to content

Instantly share code, notes, and snippets.

@Kernelzero
Created June 2, 2021 03:25
Show Gist options
  • Save Kernelzero/f9571472d51528d6e412179710ac29ff to your computer and use it in GitHub Desktop.
Save Kernelzero/f9571472d51528d6e412179710ac29ff to your computer and use it in GitHub Desktop.
pastaList = list()
juiceList = list()
P_COUNT = 3
J_COUNT = 2
for _ in range(P_COUNT):
pastaList.append(int(input()))
for _ in range(J_COUNT):
juiceList.append(int(input()))
pastaList.sort()
juiceList.sort()
p_min = pastaList[0]
j_min = juiceList[0]
def getPrice(pasta, juice):
summary = pasta + juice
summary *= 1.1
return summary
print('%.1f' % (getPrice(p_min, j_min)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment