print("Enter number of time player can flip the card")
a=int(input())
b=0
c=0
for i in range(a):
print("Arun flip the card")
d=0
str1=str(input())
d=int(input())
if(str1=='R'):
b+=10*d
elif(str1=='Q'):
b+=10*d
elif(str1=='P'):
b+=7*d
elif(str1=='S'):
b+=5*d
print("Arya flip the card")
e=0
str2=str(input())
e=int(input())
if(str2=='R'):
c+=10*e
elif(str2=='Q'):
c+=10*e
elif(str2=='P'):
c+=7*e
elif(str2=='S'):
c+=5*e
print("Total scores "+str(b)+" "+str(c))
if(b>c):
print("Arun won the game")
elif(b<c):
print("Arya won the game")
elif(b==c):
print("Game tied")
Replies to lists 14
Title |
Name |
Language |
UNIX |
When |
lists 15 |
kush |
text |
1579288254 |
4 Years ago. |
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}