0
Practice with list comprehension
Now I'm trying to pass the code that's in lines 32-38 to list comprehension đ€ https://code.sololearn.com/ca179a194a24/?ref=app
2 Answers
+ 3
m1 = [
[int(val >= prom) for val in row]
for row in m1
]
[print(*row) for row in m1]
+ 1
I thought it was going to be a long line but it looks so clean đ now I want to improve in this subject even more