Array And String Coding Questions In Python