Facebook
From kush, 4 Years ago, written in Plain Text.
This paste is a reply to lists 10 from kush - view diff
Embed
Download Paste or View Raw
Hits: 352
  1. print("Enter number of time player can flip the card")
  2. a=int(input())
  3. b=0
  4. c=0
  5. for i in range(a):
  6.     print("Arun flip the card")
  7.     d=0
  8.     str1=str(input())
  9.     d=int(input())
  10.     if(str1=='R'):
  11.         b+=10*d
  12.     elif(str1=='Q'):
  13.         b+=10*d
  14.     elif(str1=='P'):
  15.         b+=7*d
  16.     elif(str1=='S'):
  17.         b+=5*d
  18.     print("Arya flip the card")
  19.     e=0
  20.     str2=str(input())
  21.     e=int(input())
  22.     if(str2=='R'):
  23.         c+=10*e
  24.     elif(str2=='Q'):
  25.         c+=10*e
  26.     elif(str2=='P'):
  27.         c+=7*e
  28.     elif(str2=='S'):
  29.         c+=5*e
  30. print("Total scores "+str(b)+" "+str(c))
  31. if(b>c):
  32.     print("Arun won the game")
  33. elif(b<c):
  34.     print("Arya won the game")
  35. elif(b==c):
  36.     print("Game tied")

Replies to lists 14 rss

Title Name Language When
lists 15 kush text 4 Years ago.