im knew to python and have started work on a small project
(i know my code isnt the best but i understand it)
import random strength = random.randint(1,100) health = random.randint(1,100) energy = random.randint(1,100) Text1= 'Your strength is ' Text2= 'Your health is ' Text3= 'Your energy is ' Text4= 'You took ' Text5= ' damage' Text6= 'your health is now ' Text7= 'your energy is' damage = random.randint(1,20) print (Text1 + (str(strength))) print (Text2 + (str(health))) print (Text3 + (str(energy))) print ('You see a beast before you what are your actions') action = input ('Fight or Run') if action =='Fight' or 'fight': print ('You Fought') print (Text4 + (str(damage)) + Text5) if action =='Run' or 'run': print ('you ran') print (Text7 + (str(energy-20)))but when i run this code it gets to the points where it asks fight or run. If i choose fight it works perfectly fine but if i choose run it still does the fight sequence and then the run sequence and i do not know how to fix this
(i know my code isnt the best but i understand it)