Skip to content

Instantly share code, notes, and snippets.

@lakesare
Created September 24, 2022 05:36
Show Gist options
  • Save lakesare/4f9f187df3e9a549ae1fda0c168f9c2c to your computer and use it in GitHub Desktop.
Save lakesare/4f9f187df3e9a549ae1fda0c168f9c2c to your computer and use it in GitHub Desktop.
juan = 0
gregor = 0
luke = 0
matti = 0
ev = 0
# Ev paid 224.20 lari for the dinner, we divide it equally
ev += 224.20
juan -= 44.84
gregor -= 44.84
luke -= 44.84
matti -= 44.84
ev -= 44.84
# Ev paid 70 lari for 1-hour rent, we divide it equally
ev += 70
juan -= 14
gregor -= 14
luke -= 14
matti -= 14
ev -= 14
# Ev massage costs 30 lari
juan += 10
ev += 20
ev -= 30
# Everyone else's massage costs 20 lari, luke paid 60 lari for everyone
luke += 60
juan -= 20
luke -= 20
matti -= 20
print(f"{juan=} {gregor=} {luke=} {matti=} {ev=}")
@lakesare
Copy link
Author

lakesare commented Sep 24, 2022

juan = –68.84
gregor = –58.84
luke = –18.84
matti = –78.84
ev = 225.36

@lakesare
Copy link
Author

lakesare commented Sep 24, 2022

juan = –68.84 done
gregor = –58.84 done
luke = –18.84 done
matti = –78.84 done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment