Python How to Program(Parts A & B)