Facebook
From kush, 4 Years ago, written in Plain Text.
This paste is a reply to lists 10 from kush - go back
Embed
Viewing differences between lists 10 and lists 14
import datetime
n=int(input())
od=[]
da=[]
fil=[]
print("Enter number of time player can flip the card")
a=int(input())
b=0
c=0
for i in range(n):
    a,b=input().split(",")
    od.append(a)
    da.append(b)
    l=int(len(da))
da1,mo,ye=map(int,input().split('-'))
fl=datetime.date(ye,mo,da1)
for i in range(l):
    d,m,y=map(int,da[i].split('-'))
    sfl=datetime.date(y,m,d)
    if(sfl>fl):
        fil.append(od[i])
print("[",end="")
for i in range(l):
    if(i==l-1):
        print("('"+od[i]+"', '"+da[i]+"')",end='')
    else:
        print("('"+od[i]+"', '"+da[i]+"'), ",end='')
print("]")
for i in fil:
    print(i)
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     print("Arya won the game")
elif(b==c):
    print("Game tied")

Replies to lists 14 rss

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