<jupyter_start><jupyter_text>List Comprehension<jupyter_code>x = int(input())
y = int(input())
z = int(input())
n = int(input())

result = []
for i in range(x+1):
    for j in range(y+1):
        for k in range(z+1):
            if (i+j+k) != n:
                result.append([i,j,k])
                
print(result)
x = int(input())
y = int(input())
z = int(input())
n = int(input())

result = [[i,j,k] for i in range(x+1) for j in range(y+1) for k in range(z+1) if (i+j+k)!= n]
print(result)<jupyter_output><empty_output><jupyter_text>Runner-up Score: find the second place<jupyter_code>n = int(input())
arr = map(int, input().split())
scores = list(arr)

for i in scores:
    while scores.count(i)>1:
        scores.remove(i)
        
scores.sort(reverse = True)
print(scores[1])
input().split()<jupyter_output><empty_output><jupyter_text>Nested Lists: find the second lowest grade in Physics<jupyter_code>students = []
for _ in range(int(input("Number of Students:"))):
    name = input("Name:")
    score = float(input("Score:"))
    students.append([name,score])
students.sort()
#print(students)

scores = []
for i in students:
    scores.append(i[1])

scores.sort()
#print(scores)

for j in students:
    if j[1] == scores[1]:
        print(j[0])
students = []
scores = []

for _ in range(int(input("Number of Students:"))):
    name = input("Name:")
    score = float(input("Score:"))
    students.append([name,score])
    scores.append(score)
    
students.sort()

for i in scores:
    if scores.count(i)>1:
        scores.remove(i)
scores.sort()


for i in students:
    if i[1] == scores[1]:
        print(i[0])<jupyter_output><empty_output><jupyter_text>Finding the Percentage: Dictionary, decimal points<jupyter_code>n = int(input())
student_marks = {}
for _ in range(n):
    name, *line = input().split()
    scores = list(map(float, line))
    student_marks[name] = scores
    
print(student_marks)
n = int(input())
student_marks = {}
for _ in range(n):
    name, *line = input().split()
    scores = list(map(float, line))
    student_marks[name] = scores
    
query_name = input()
total = 0
for i in student_marks[query_name]:
    total+=i
    
average = (total/3)
print("%.2f"%average)<jupyter_output>3
Kris 67 70 89
Ben 45 66 78
Malika 34 67 76
Malika
59.00
StarcoderdataJupyterStructuredCleanDedup