what does the output "<generator object <genexpr> at 0x0000020B9232B888>" mean in python-3? -
code:
marks = [[ input() , float(input()) ] _ in range(int(input()))] s = ( y [x,y] in marks) print(s) l = list(s) l.sort() print(l) sec = l[1] ans = [x [x,y] in marks if y == sec] ans.sort() x in ans: print(x)
output:
5 harry 37.21 berry 37.21 tina 37.2 akriti 41 harsh 39 <generator object <genexpr> @ 0x0000020b9232b888> [37.2, 37.21, 37.21, 39.0, 41.0] berry harry
Comments
Post a Comment