Mar-29-2019, 02:51 PM
(Mar-29-2019, 11:53 AM)polloila Wrote: I can't figure out how to add and subtract from their scores according to whether they land and even or an odd number.
Please write some code and I am pretty sure there are people willing to help you.
I observed that actually you have only one problem (quoted above). Simplest way to determine whether number is even or odd is to use modulus (divides and returns the value of the remainder):
>>> 4 % 2 0 >>> 5 % 2 1 >>> if 5 % 2 == 0: ... print('even') ... else: ... print('odd') ... odd
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.