May-05-2020, 04:10 PM
@KieranPage
The if statements don't do as expected because of the
Multiple expressions with "or" keyword
note rather than checking for various case you could just turn the input into lowercase.
That's great that you got the code working but note you have added duplication of code for each outcome
The if statements don't do as expected because of the
or
, see the following linkMultiple expressions with "or" keyword
note rather than checking for various case you could just turn the input into lowercase.
action = input('Fight or Run') action = action.lower() if action == 'fight': ...@tonytech
That's great that you got the code working but note you have added duplication of code for each outcome