You are viewing a single comment's thread. Return to all comments →
I like your use of join. Btw, you could use list expansion for the read as well if you wanted:
n = int(input()) marksheet = [[input(), float(input())] for _ in range(n)]
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
I like your use of join. Btw, you could use list expansion for the read as well if you wanted: