Here's an example of what I'm going for...
Code: Select all
if love >= 30: #in love - between 50 and 30, lose 25 points
$ love -= 25
elif love >= 15: #very close - between 30 and 15, lose 14 points
$ love -= 14
else: #slightly close - between 15 and 1, lose total points
$ love -= love
It's working alright, but as my code gets more complex putting it in multiple times is becoming a hassle and making my document super long. I'm wondering if there isn't some fancy equation using exponents or some other type of mathematical device I'm less familiar with that I could use to get roughly the same results while taking up a fraction of the space. Thanks a lot!