top scoring batsman name in python programming
Answers
Answered by
8
Answer:
name2 = (input("Give me a name"))
name3 = (input("Give me a name"))
point1 = (input("Give me your points "+name1))
point2 = (input("Give me your points "+name2))
point3 = (input("Give me your points "+name3))
score = [point1, point2, point3]
highscore = (max(highscore))
deepthi99912:
n=int(input()) l=[] for i in range(n): a=list(map(str,input().split())) a[1],a[2],a[3]=int(a[1]),int(a[2]),int(a[3]) l.append(a) m=[0] for i in l: if sum(i[1:])>sum(m[1:]): m=i elif sum(i[1:])==sum(m[1:]): if i[1]>m[1]: m=i elif i[1]==m[1]: if i[2]>m[2]: m=i elif i[2]==m[2]: if i[3]>m[3]: m=i print(m[0])
Answered by
16
answer: n=int(input()) l=[] for i in range(n): a=list(map(str,input().split())) a[1],a[2],a[3]=int(a[1]),int(a[2]),int(a[3]) l.append(a) m=[0] for i in l: if sum(i[1:])>sum(m[1:]): m=i elif sum(i[1:])==sum(m[1:]): if i[1]>m[1]: m=i elif i[1]==m[1]: if i[2]>m[2]: m=i elif i[2]==m[2]: if i[3]>m[3]: m=i print(m[0])
Similar questions
Business Studies,
2 months ago
Social Sciences,
2 months ago
Science,
5 months ago
Math,
5 months ago
History,
11 months ago