But i get one or more elements in list that not of type int
class CyberList:
    def __init__(self, new_list):
        for i in new_list:
            if type(i) != int:
                new_list.remove(i)
        print(new_list)
CyberList([1, 2, '', [], 2, 'ggt', 'gg'])
I try to use metods remove(), pop(), but it doesn't help List must include only int types
 
    