Text Size
Text Size
Exit Full Screen
Python3 Editor
Show
Source Code
View Source Code in Full Screen
attacks = ["rock", "gun", "lightning", "devil", "dragon", "water", "air", "paper", "sponge", "wolf", "tree", "human", "snake", "scissors", "fire"] input1 = str(input("Enter an attack: ")).lower() input2 = str(input("Enter an attack: ")).lower() intAt1 = attacks.index(input1) intAt2 = attacks.index(input2) if (intAt1 > intAt2): intAt2 += len(attacks) if (intAt1 + 6 < intAt2): print(input1 + " wins against " + input2) else: print(input2 + " wins against " + input1)
weirdFingerGame.py
( around 11 lines Python3 code )
Published By:
Jaxol
Created on
2023-03-14T19:12:19Z
Python3 Editor
- an
OYOclass
application,
own your own class today
.
Run
Result
Status:
Program is not running