79133814

Date: 2024-10-28 14:27:27
Score: 1
Natty:
Report link
script_val =dict({"a":1, "b":2, "c":3})
not_script_val = 5
print(f"{hasattr(script_val,'__getitem__')=}")
print(f"{hasattr(not_script_val,'__getitem__')=}")

hasattr(script_val, '_getitem_')=True
hasattr(not_script_val, '_getitem_')=False

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Serg888 Fert