def remove_range(num,min,max):
for n in num:
if n>max or n<min:
num.remove(n)
return num
For example when running this code it says set size changes during iteration. What is the work around for this? Desired output would be a set of numbers that are within the range min, max. Num is a set of numbers.