How To Take 2d Array Input In Python Syntax If Else Statement