Python Error Float Object Is Not Subscriptable Python