Data Structure In Python Programs With Logics