Ad
Fundamentals
Logic
Code
Diff
  • def identify_data_type(value):
        if value is None:
            return 'unknown'
        
        data_type = type(value).__name__
    
        if data_type == 'int':
            return 'int'
        elif data_type == 'float':
            return 'float'
        elif data_type == 'str':
            return 'str'
        elif data_type == 'list':
            return 'list'
        elif data_type == 'tuple':
            return 'tuple'
        elif data_type == 'dict':
            return 'dict'
        elif data_type == 'bool':
            return 'bool'
        elif data_type == 'set':
            return 'set'
        elif data_type == 'function':
            return 'function'
        else:
            return 'unknown'
    • exec(f"""
    • {NotImplemented.__str__().__doc__[727-700-20]}{bytes(help.__doc__, "u16").__repr__.__str__().lower()[40+7]}{NotImplemented.__str__().__doc__[727-700-20]}{__import__("this").s[69-2]}({bytes(1337).__str__()[0]}{exec.__doc__.__str__()[7+7+7+7+7+7+7+7+7+7+7]}{(7).__eq__(21).__eq__(False).__eq__(True).__str__()[0].lower()}{NotImplemented.__str__().__doc__[727-700-20]}{isinstance("i ran out of ideas for funny numbers", complex).__str__()[len("so im doing this to make it look like im super smart")-7*7]}("椊敤瑮晩役慤慴瑟灹㵥慬扭慤砠⠺祴数砨⸩彟敲牰彟弮獟牴彟⤨⸩灳楬⡴✢⤢㍛੝", "{__import__("__hello__").__str__()[4]}16")[2:])
    • """)
    • def identify_data_type(value):
    • if value is None:
    • return 'unknown'
    • data_type = type(value).__name__
    • if data_type == 'int':
    • return 'int'
    • elif data_type == 'float':
    • return 'float'
    • elif data_type == 'str':
    • return 'str'
    • elif data_type == 'list':
    • return 'list'
    • elif data_type == 'tuple':
    • return 'tuple'
    • elif data_type == 'dict':
    • return 'dict'
    • elif data_type == 'bool':
    • return 'bool'
    • elif data_type == 'set':
    • return 'set'
    • elif data_type == 'function':
    • return 'function'
    • else:
    • return 'unknown'