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 ответов
+ 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