79198405

Date: 2024-11-18 00:16:56
Score: 0.5
Natty:
Report link

you should test the type of the sublist

def test_shape(list_):
    if type(list_[0]) is list:
        print('list_ is 2d')
    else:
        print('list_ is 1d')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: folen gateis