let's assume we have a dictionary 'd' with key '1' and the value of '1' is a list '[11,22,33,44]' then how can we remove all values less than 30?
I tried to run a loop and use the remove function:
d={1:[11,22,33,44]}
for j in d[1]:
if j<=30:
d[1].remove(j)
print(d)
the result I was expecting was: {1: [33, 44]} but instead after removing the 1st element the loop stopped and gave me: {1: [22, 33, 44]}