How to write python list comprehension for the code given below

n = int(input())

for i in range(n):
    name = input()
    score = float(input())

Hello @adhikarisabin258.

I have edited your block of code for better reading experience.
This is how you enter a block of code.

Regarding your question, what have you done so far?

1 Like